mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
Extracted toGlyphEmbed() method from toGlyph() and fixed some backward compatibility issues.
This commit is contained in:
@@ -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']);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user