1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Extracted toGlyphEmbed() method from toGlyph() and fixed some backward compatibility issues.

This commit is contained in:
Cameron
2022-01-27 16:50:42 -08:00
parent 26afb93b4e
commit c3d65075d0
2 changed files with 48 additions and 16 deletions

View File

@@ -36,7 +36,9 @@ class search_shortcodes extends e_shortcode
if(isset($parm['label']))
{
$label = (strpos($parm['label'], '.glyph')!==false) ? e107::getParser()->toGlyph($parm['label'],'') : LAN_SEARCH;
$opts = $parm;
unset($opts['label'],$opts['class']);
$label = (strpos($parm['label'], '.glyph')!==false) ? e107::getParser()->toGlyph($parm['label'], $opts) : LAN_SEARCH;
unset($parm['label']);
}