1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-16 20:28:28 +01:00

Related to Issue #3927 {NEWS_IMAGE: alt=description} now includes the alt value when included in a news body.

This commit is contained in:
Cameron 2023-03-11 09:50:31 -08:00
parent ebba6f0ec5
commit 4bad7825df

View File

@ -493,10 +493,11 @@ class news_shortcodes extends e_shortcode
}
$style = !empty($this->param['thumbnail']) ? $this->param['thumbnail'] : '';
$alt = !empty($parm['alt']) ? $parm['alt'] : basename($srcPath);
$imgParms = array(
'class' => $class,
'alt' => basename($srcPath),
'alt' => $alt,
'style' => $style,
'placeholder' => varset($parm['placeholder']),
'legacy' => '{e_IMAGE}newspost_images'