fix ARTICLE_BUTTON_PLUGINS not loaded when string contains spaces
This commit is contained in:
parent
bed064442a
commit
8b299a163e
|
@ -248,7 +248,7 @@ class Feeds extends Handler_Protected {
|
|||
if (get_pref($this->link, 'COMBINED_DISPLAY_MODE')) {
|
||||
$button_plugins = array();
|
||||
foreach (explode(",", ARTICLE_BUTTON_PLUGINS) as $p) {
|
||||
$pclass = trim("button_${p}");
|
||||
$pclass = "button_" . trim($p);
|
||||
|
||||
if (class_exists($pclass)) {
|
||||
$plugin = new $pclass($link);
|
||||
|
|
|
@ -3434,7 +3434,7 @@
|
|||
$button_plugins = explode(",", ARTICLE_BUTTON_PLUGINS);
|
||||
|
||||
foreach ($button_plugins as $p) {
|
||||
$pclass = trim("button_${p}");
|
||||
$pclass = "button_" . trim($p);
|
||||
|
||||
if (class_exists($pclass)) {
|
||||
$plugin = new $pclass($link);
|
||||
|
|
Loading…
Reference in New Issue