// Fix token on adminHome
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8758 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -38,7 +38,7 @@ class AdminControllerCore extends Controller
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
// if this->template is empty,
|
||||
// if this->template is empty,
|
||||
// generate the filename from the classname, without "Controller" suffix
|
||||
if (empty($this->template))
|
||||
{
|
||||
@@ -78,6 +78,10 @@ class AdminControllerCore extends Controller
|
||||
|
||||
$this->token = Tools::getAdminToken($className.(int)$this->id.(int)$this->context->employee->id);
|
||||
|
||||
// Fix for AdminHome
|
||||
if ($className == 'AdminHome')
|
||||
$_POST['token'] = $this->token;
|
||||
|
||||
if (!Shop::isMultiShopActivated())
|
||||
$this->shopLinkType = '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user