From a2c8f01f6153ebd04e6fab433648475556335247 Mon Sep 17 00:00:00 2001 From: rGaillard Date: Fri, 28 Sep 2012 15:45:54 +0000 Subject: [PATCH] // Fix image default lin, --- classes/Link.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Link.php b/classes/Link.php index 227cd218f..474c1bc2d 100644 --- a/classes/Link.php +++ b/classes/Link.php @@ -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 : ''); if ((Configuration::get('PS_LEGACY_IMAGES') && (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'; else $uri_path = _THEME_PROD_DIR_.$ids.($type ? '-'.$type : '').$theme.'.jpg';