mirror of
https://github.com/e107inc/e107.git
synced 2025-04-15 18:14:07 +02:00
Handle missing plugin icons (override bbcodes)
This commit is contained in:
parent
a44401202b
commit
31c31c36ee
@ -491,7 +491,8 @@ class bbcode_shortcodes extends e_shortcode
|
||||
extract($val);
|
||||
// echo "$onclick $onclick_var $helptext $icon <br />";
|
||||
$bbcode[$name] = array($onclick,$onclick_var,$helptext,$icon,$function,$function_var);
|
||||
$iconpath[$name] = $icon;
|
||||
if($val['icon']) $iconpath[$name] = $icon;
|
||||
else unset($iconpath[$name]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -510,8 +511,7 @@ class bbcode_shortcodes extends e_shortcode
|
||||
$post = "</a>\n";
|
||||
}
|
||||
|
||||
|
||||
|
||||
if(!$iconpath[$parm]) return '';
|
||||
|
||||
if($bbcode[$parm]) // default - insert text.
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user