// Fix image default lin,
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17618 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
9ad0b29da0
commit
73733c76e1
1 file changed
+2
-2
+2
-2
@@ -355,9 +355,9 @@ class LinkCore
|
|||||||
$theme = ((Shop::isFeatureActive() && file_exists(_PS_PROD_IMG_DIR_.$ids.($type ? '-'.$type : '').'-'.(int)Context::getContext()->shop->id_theme.'.jpg')) ? '-'.Context::getContext()->shop->id_theme : '');
|
$theme = ((Shop::isFeatureActive() && file_exists(_PS_PROD_IMG_DIR_.$ids.($type ? '-'.$type : '').'-'.(int)Context::getContext()->shop->id_theme.'.jpg')) ? '-'.Context::getContext()->shop->id_theme : '');
|
||||||
if ((Configuration::get('PS_LEGACY_IMAGES')
|
if ((Configuration::get('PS_LEGACY_IMAGES')
|
||||||
&& (file_exists(_PS_PROD_IMG_DIR_.$ids.($type ? '-'.$type : '').$theme.'.jpg')))
|
&& (file_exists(_PS_PROD_IMG_DIR_.$ids.($type ? '-'.$type : '').$theme.'.jpg')))
|
||||||
|| strpos($ids, 'default') !== false)
|
|| ($not_default = strpos($ids, 'default') !== false))
|
||||||
{
|
{
|
||||||
if ($this->allow == 1)
|
if ($this->allow == 1 && !$not_default)
|
||||||
$uri_path = __PS_BASE_URI__.$ids.($type ? '-'.$type : '').$theme.'/'.$name.'.jpg';
|
$uri_path = __PS_BASE_URI__.$ids.($type ? '-'.$type : '').$theme.'/'.$name.'.jpg';
|
||||||
else
|
else
|
||||||
$uri_path = _THEME_PROD_DIR_.$ids.($type ? '-'.$type : '').$theme.'.jpg';
|
$uri_path = _THEME_PROD_DIR_.$ids.($type ? '-'.$type : '').$theme.'.jpg';
|
||||||
|
|||||||
Reference in new issue
Block a user