mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +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);
|
extract($val);
|
||||||
// echo "$onclick $onclick_var $helptext $icon <br />";
|
// echo "$onclick $onclick_var $helptext $icon <br />";
|
||||||
$bbcode[$name] = array($onclick,$onclick_var,$helptext,$icon,$function,$function_var);
|
$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";
|
$post = "</a>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!$iconpath[$parm]) return '';
|
||||||
|
|
||||||
|
|
||||||
if($bbcode[$parm]) // default - insert text.
|
if($bbcode[$parm]) // default - insert text.
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user