From a05ba3ed44e09074c148194f8d791ee5a05f7b47 Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Thu, 25 Feb 2021 18:29:13 +0800 Subject: [PATCH] remove surplus backhome --- common.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/common.php b/common.php index 12c44aa..5e60564 100644 --- a/common.php +++ b/common.php @@ -282,9 +282,8 @@ function main($path) $tmp = adminoperate($path); if ($tmp['statusCode'] > 0) { $path1 = path_format($_SERVER['list_path'] . path_format($path)); - //savecache('path_' . $path1, json_decode('{}',true), $_SERVER['disktag'], 1); - if ($path1!='/'&&substr($path1,-1)=='/') $path1=substr($path1,0,-1); - savecache('path_' . $path1, json_decode('{}',true), $_SERVER['disktag'], 1); + if ($path1!='/'&&substr($path1,-1)=='/') $path1 = substr($path1, 0, -1); + savecache('path_' . $path1, '', $_SERVER['disktag'], 1); return $tmp; } } else { @@ -382,7 +381,7 @@ function main($path) $files['error']['code'] = 'unknownError'; $files['error']['stat'] = 500; } - return message(''.getconstStr('Back').getconstStr('Home').'
' . $files['error']['message'] . '
' . $files['error']['message'] . '