mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Handle missing plugin icons (override bbcodes)
This commit is contained in:
@@ -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.
|
||||
{
|
||||
|
Reference in New Issue
Block a user