mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 12:20:44 +02:00
Fix for legacy news image paths.
This commit is contained in:
@@ -502,13 +502,14 @@ class news_shortcodes extends e_shortcode
|
|||||||
'alt' => basename($srcPath),
|
'alt' => basename($srcPath),
|
||||||
'style' => $style,
|
'style' => $style,
|
||||||
'placeholder' => varset($parm['placeholder']),
|
'placeholder' => varset($parm['placeholder']),
|
||||||
|
'legacy' => '{e_IMAGE}newspost_images'
|
||||||
);
|
);
|
||||||
|
|
||||||
if(!empty($parm['loading']))
|
if(!empty($parm['loading']))
|
||||||
{
|
{
|
||||||
$imgParms['loading'] = $parm['loading'];
|
$imgParms['loading'] = $parm['loading'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$imgTag = $tp->toImage($srcPath,$imgParms);
|
$imgTag = $tp->toImage($srcPath,$imgParms);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user