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'] . '