mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 12:20:44 +02:00
Backward Compat. path fix.
This commit is contained in:
@@ -334,7 +334,17 @@ class news_shortcodes extends e_shortcode
|
|||||||
if (!$category_icon) { return ''; }
|
if (!$category_icon) { return ''; }
|
||||||
|
|
||||||
// We store SC path in DB now + BC
|
// We store SC path in DB now + BC
|
||||||
$src = $category_icon[0] == '{' ? e107::getParser()->replaceConstants($category_icon, 'abs') : e_IMAGE_ABS."newspost_images/".$category_icon;
|
if($category_icon[0] == '{')
|
||||||
|
{
|
||||||
|
$src = e107::getParser()->replaceConstants($category_icon, 'abs');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//Backwards Compatible Link.
|
||||||
|
$src = (is_readable(e_IMAGE_ABS."newspost_images/".$category_icon)) ? e_IMAGE_ABS."newspost_images/".$category_icon : e_IMAGE_ABS."icons/".$category_icon;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//TODO - remove inline styles
|
//TODO - remove inline styles
|
||||||
if($this->param['caticon'] == ''){$this->param['caticon'] = 'border:0px';}
|
if($this->param['caticon'] == ''){$this->param['caticon'] = 'border:0px';}
|
||||||
|
Reference in New Issue
Block a user