// Fix $currentindex in AdminController #PSFV-334
This commit is contained in:
@@ -1717,7 +1717,7 @@ class AdminControllerCore extends Controller
|
|||||||
$this->redirect_after = $this->context->link->getAdminLink('AdminLogin').(!isset($_GET['logout']) ? '?redirect='.$_SERVER['REQUEST_URI'] : '');
|
$this->redirect_after = $this->context->link->getAdminLink('AdminLogin').(!isset($_GET['logout']) ? '?redirect='.$_SERVER['REQUEST_URI'] : '');
|
||||||
|
|
||||||
// Set current index
|
// Set current index
|
||||||
$current_index = $_SERVER['SCRIPT_NAME'].(($controller = Tools::getValue('controller')) ? '?controller='.$controller : '');
|
$current_index = dirname($_SERVER['SCRIPT_NAME']).'/index.php'.(($controller = Tools::getValue('controller')) ? '?controller='.$controller : '');
|
||||||
if ($back = Tools::getValue('back'))
|
if ($back = Tools::getValue('back'))
|
||||||
$current_index .= '&back='.urlencode($back);
|
$current_index .= '&back='.urlencode($back);
|
||||||
self::$currentIndex = $current_index;
|
self::$currentIndex = $current_index;
|
||||||
|
|||||||
Reference in New Issue
Block a user