Merge branch 'sprint/167_xieqiyu_43168' into 'sprint/167'
* Code for task#43168. See merge request easycorp/zentaopms!65
This commit is contained in:
@@ -492,11 +492,14 @@ class baseHTML
|
||||
global $lang, $app, $config;
|
||||
if(empty($label)) $label = $lang->goback;
|
||||
|
||||
if(!isset($_SERVER['HTTP_REFERER'])) return "<a href='javascript:history.go(-1)' class='btn btn-back $class' $misc>{$label}</a>";;
|
||||
$gobackLink = "<a href='javascript:history.go(-1)' class='btn btn-back $class' $misc>{$label}</a>";
|
||||
$tab = $_COOKIE['tab'];
|
||||
$referer = isset($_SERVER['HTTP_REFERER']) ? strtolower($_SERVER['HTTP_REFERER']) : '';
|
||||
$refererParts = parse_url($referer);
|
||||
|
||||
if($config->requestType == 'PATH_INFO' and empty($refererParts)) return $gobackLink;
|
||||
if($config->requestType == 'GET' and !isset($refererParts['query'])) return $gobackLink;
|
||||
|
||||
$tab = $_COOKIE['tab'];
|
||||
$referer = strtolower($_SERVER['HTTP_REFERER']);
|
||||
$refererParts = parse_url($referer);
|
||||
$refererLink = $config->requestType == 'PATH_INFO' ? $refererParts['path'] : $refererParts['query'];
|
||||
$currentModule = $app->getModuleName();
|
||||
$currentMethod = $app->getMethodName();
|
||||
|
||||
Reference in New Issue
Block a user