1
0
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:
Cameron
2021-10-16 10:03:28 -07:00
parent cbb8315417
commit 455551d10f

View File

@@ -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);