[-]BO: Fixes issue with logo name.

Upgraded shops sometimes gets a -1 on the logo filename even if the multishop feature is turned off. Causing the BO and FO to link to the wrong file.
This commit is contained in:
Daniel
2013-03-06 08:51:33 +01:00
parent fdda16717f
commit dfab3014ea
+1 -1
View File
@@ -614,7 +614,7 @@ class AdminThemesControllerCore extends AdminController
$ext = ($field_name == 'PS_STORES_ICON') ? '.gif' : '.jpg';
$logo_name = $logo_prefix.'-'.(int)$id_shop.$ext;
if (Context::getContext()->shop->getContext() == Shop::CONTEXT_ALL || $id_shop == 0)
if (Context::getContext()->shop->getContext() == Shop::CONTEXT_ALL || $id_shop == 0 || (bool)Configuration::get('PS_MULTISHOP_FEATURE_ACTIVE')==false)
$logo_name = $logo_prefix.$ext;
if ($field_name == 'PS_STORES_ICON')