From 8b299a163ec042d4d82cbf627675941bf330c889 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 28 Oct 2012 13:02:50 +0400 Subject: [PATCH] fix ARTICLE_BUTTON_PLUGINS not loaded when string contains spaces --- classes/feeds.php | 2 +- include/functions.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/feeds.php b/classes/feeds.php index d924eeb3..d13c83a2 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -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); diff --git a/include/functions.php b/include/functions.php index eeed5650..2994dd43 100644 --- a/include/functions.php +++ b/include/functions.php @@ -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); -- 2.39.5