[*] FO : getCatImageLink doesn't work without type thanks @axometeam
This commit is contained in:
1 parent
24d124f190
commit
8588978e03
1 file changed
+4
-1
+4
-1
@@ -482,7 +482,10 @@ class LinkCore
|
|||||||
|
|
||||||
public function getCatImageLink($name, $id_category, $type = null)
|
public function getCatImageLink($name, $id_category, $type = null)
|
||||||
{
|
{
|
||||||
$uri_path = ($this->allow == 1) ? (__PS_BASE_URI__.'c/'.$id_category.($type ? '-'.$type : '').'/'.$name.'.jpg') : (_THEME_CAT_DIR_.$id_category.($type ? '-'.$type : '').'.jpg');
|
if($this->allow == 1 && $type)
|
||||||
|
$uri_path = __PS_BASE_URI__.'c/'.$id_category.'-'.$type.'/'.$name.'.jpg';
|
||||||
|
else
|
||||||
|
$uri_path = _THEME_CAT_DIR_.$id_category.($type ? '-'.$type : '').'.jpg';
|
||||||
return $this->protocol_content.Tools::getMediaServer($uri_path).$uri_path;
|
return $this->protocol_content.Tools::getMediaServer($uri_path).$uri_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user