1
0
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:
SecretR 2013-10-24 01:32:42 +03:00
parent a44401202b
commit 31c31c36ee

View File

@ -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.
{