// fix retrocompat global currentIndex
This commit is contained in:
1 parent
277e09ebda
commit
be479362a7
1 file changed
+2
@@ -41,6 +41,8 @@ try
|
|||||||
Tools::redirectAdmin('index.php?controller=AdminLogin&redirect='.$_SERVER['REQUEST_URI']);
|
Tools::redirectAdmin('index.php?controller=AdminLogin&redirect='.$_SERVER['REQUEST_URI']);
|
||||||
|
|
||||||
// Set current index
|
// Set current index
|
||||||
|
// @deprecated global will be removed in 1.6
|
||||||
|
global $currentIndex; // retrocompatibility;
|
||||||
$currentIndex = $_SERVER['SCRIPT_NAME'].(($controller = Tools::getValue('controller')) ? '?controller='.$controller: '');
|
$currentIndex = $_SERVER['SCRIPT_NAME'].(($controller = Tools::getValue('controller')) ? '?controller='.$controller: '');
|
||||||
|
|
||||||
if ($back = Tools::getValue('back'))
|
if ($back = Tools::getValue('back'))
|
||||||
|
|||||||
Reference in new issue
Block a user