From 7d95dc55d91c0b57f8bcba2254102d428fdf479f Mon Sep 17 00:00:00 2001 From: tianshujie Date: Mon, 30 Aug 2021 16:04:50 +0800 Subject: [PATCH] * Modify the back link of the testtask. --- lib/base/front/front.class.php | 2 -- module/doc/view/create.html.php | 2 +- module/doc/view/edit.html.php | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/base/front/front.class.php b/lib/base/front/front.class.php index f2ce3a11af..6d34aa435a 100644 --- a/lib/base/front/front.class.php +++ b/lib/base/front/front.class.php @@ -505,8 +505,6 @@ class baseHTML $gobackList = isset($_COOKIE['goback']) ? json_decode($_COOKIE['goback'], true) : array(); $gobackLink = isset($gobackList[$tab]) ? $gobackList[$tab] : ''; - if(strpos($misc, 'data-app') === false) $misc .= ' data-app="' . $tab . '"'; - /* If the link of the referer is not the link of the current page or the link of the index, the cookie and gobackLink will be updated. */ if(!preg_match("/(m=|\/)(index|search|$currentModule)(&f=|-)(index|buildquery|$currentMethod)(&|-|\.)?/", $refererLink)) { diff --git a/module/doc/view/create.html.php b/module/doc/view/create.html.php index 773e37f892..a13563148e 100644 --- a/module/doc/view/create.html.php +++ b/module/doc/view/create.html.php @@ -117,7 +117,7 @@ - + goback, "data-app='{$app->openApp}'");?> diff --git a/module/doc/view/edit.html.php b/module/doc/view/edit.html.php index 4023a97672..ff3c869ed2 100644 --- a/module/doc/view/edit.html.php +++ b/module/doc/view/edit.html.php @@ -105,7 +105,7 @@ editedDate); echo html::submitButton(); - echo html::backButton(); + echo html::backButton($lang->goback, "data-app='{$app->openApp}'"); ?>