From 8b299a163ec042d4d82cbf627675941bf330c889 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 28 Oct 2012 13:02:50 +0400 Subject: fix ARTICLE_BUTTON_PLUGINS not loaded when string contains spaces --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/functions.php b/include/functions.php index eeed5650d..2994dd438 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); -- cgit v1.2.3