[-] BO : AdminModule shows when connected to Addons and have a logout button
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13731 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -289,6 +289,13 @@ class AdminModulesControllerCore extends AdminController
|
||||
die($result);
|
||||
}
|
||||
|
||||
public function ajaxProcessLogOutAddonsWebservices()
|
||||
{
|
||||
$this->context->cookie->username_addons = '';
|
||||
$this->context->cookie->password_addons = '';
|
||||
die('OK');
|
||||
}
|
||||
|
||||
public function ajaxProcessReloadModulesList()
|
||||
{
|
||||
if (Tools::getValue('filterCategory'))
|
||||
@@ -1084,7 +1091,10 @@ class AdminModulesControllerCore extends AdminController
|
||||
$tpl_vars['check_openssl'] = (extension_loaded('openssl') ? 'ok' : 'ko');
|
||||
|
||||
if ($this->logged_on_addons)
|
||||
{
|
||||
$tpl_vars['logged_on_addons'] = 1;
|
||||
$tpl_vars['username_addons'] = $this->context->cookie->username_addons;
|
||||
}
|
||||
$smarty->assign($tpl_vars);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user