1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-25 08:51:50 +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),
'style' => $style,
'placeholder' => varset($parm['placeholder']),
'legacy' => '{e_IMAGE}newspost_images'
);
if(!empty($parm['loading']))
{
$imgParms['loading'] = $parm['loading'];
}
$imgTag = $tp->toImage($srcPath,$imgParms);