// Fix multishop context in BO

This commit is contained in:
rMalie
2012-02-27 17:14:33 +00:00
parent f1d8763d35
commit ffbb4cd3e2
13 changed files with 15 additions and 22 deletions

View File

@@ -255,7 +255,7 @@ class AdminControllerCore extends Controller
*/
public $controller_name;
public $multishop_context;
public $multishop_context = -1;
public function __construct()
{
@@ -266,7 +266,8 @@ class AdminControllerCore extends Controller
parent::__construct();
$this->multishop_context = Shop::CONTEXT_ALL | Shop::CONTEXT_GROUP | Shop::CONTEXT_SHOP;
if ($this->multishop_context == -1)
$this->multishop_context = Shop::CONTEXT_ALL | Shop::CONTEXT_GROUP | Shop::CONTEXT_SHOP;
$this->bo_theme = ((Validate::isLoadedObject($this->context->employee) && $this->context->employee->bo_theme) ? $this->context->employee->bo_theme : 'default');
$this->context->smarty->setTemplateDir(_PS_BO_ALL_THEMES_DIR_.$this->bo_theme.'/template');