1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-18 03:31:54 +02:00

Tweaked for consistency with toGlyph().

This commit is contained in:
Cameron 2021-11-16 10:39:28 -08:00
parent db6035f844
commit 522b99ebde

View File

@ -173,7 +173,8 @@ class social_shortcodes extends e_shortcode
if($ret = file_get_contents($path))
{
return $ret;
$class = 'fa-'.$this->var['id'];
return str_replace('<svg', '<svg class="'.$class.'" role="img" ', $ret);
}
}