// fix retrocompat global currentIndex

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12999 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mMarinetti
2012-02-03 16:18:38 +00:00
parent 9fa90c4183
commit 1741209cdb
+2
View File
@@ -41,6 +41,8 @@ try
Tools::redirectAdmin('index.php?controller=AdminLogin&redirect='.$_SERVER['REQUEST_URI']);
// Set current index
// @deprecated global will be removed in 1.6
global $currentIndex; // retrocompatibility;
$currentIndex = $_SERVER['SCRIPT_NAME'].(($controller = Tools::getValue('controller')) ? '?controller='.$controller: '');
if ($back = Tools::getValue('back'))