From 2a2b6c43dc604e86af930884eae131537a71b9d4 Mon Sep 17 00:00:00 2001 From: vSchoener Date: Wed, 28 Mar 2012 12:52:11 +0000 Subject: [PATCH] [-] BO : Fixed bug #PSFV-282. Add back the currentIndex and token global value for the modules compatibility git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14332 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/controller/AdminController.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/classes/controller/AdminController.php b/classes/controller/AdminController.php index 91af74fe3..09b4718c9 100644 --- a/classes/controller/AdminController.php +++ b/classes/controller/AdminController.php @@ -249,6 +249,9 @@ class AdminControllerCore extends Controller public function __construct() { + // Has to be remove for the next Prestashop version + global $token; + $this->controller_type = 'admin'; $this->controller_name = get_class($this); if (strpos($this->controller_name, 'Controller')) @@ -265,6 +268,8 @@ class AdminControllerCore extends Controller $this->id = Tab::getIdFromClassName($this->controller_name); $this->token = Tools::getAdminToken($this->controller_name.(int)$this->id.(int)$this->context->employee->id); + $token = $this->token; + $this->_conf = array( 1 => $this->l('Deletion successful'), 2 => $this->l('Selection successfully deleted'), 3 => $this->l('Creation successful'), 4 => $this->l('Update successful'), @@ -1570,6 +1575,9 @@ class AdminControllerCore extends Controller */ public function init() { + // Has to be removed for the next Prestashop version + global $currentIndex; + parent::init(); if (Tools::getValue('ajax')) @@ -1593,6 +1601,7 @@ class AdminControllerCore extends Controller if ($back = Tools::getValue('back')) $current_index .= '&back='.urlencode($back); self::$currentIndex = $current_index; + $currentIndex = $current_index; if ((int)Tools::getValue('liteDisplaying')) {