[-] 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
This commit is contained in:
@@ -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'))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user