]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix ARTICLE_BUTTON_PLUGINS not loaded when string contains spaces
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 28 Oct 2012 09:02:50 +0000 (13:02 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 28 Oct 2012 09:02:50 +0000 (13:02 +0400)
classes/feeds.php
include/functions.php

index d924eeb3e0e537dc2446e2cdd877b65879559370..d13c83a23b17fa3fca3dc82439716fb2e59052fd 100644 (file)
@@ -248,7 +248,7 @@ class Feeds extends Handler_Protected {
                if (get_pref($this->link, 'COMBINED_DISPLAY_MODE')) {\r
                        $button_plugins = array();\r
                        foreach (explode(",", ARTICLE_BUTTON_PLUGINS) as $p) {\r
-                               $pclass = trim("button_${p}");\r
+                               $pclass = "button_" . trim($p);\r
 \r
                                if (class_exists($pclass)) {\r
                                        $plugin = new $pclass($link);\r
index eeed5650dff743deeb4763f40777601550b7b6f6..2994dd438a2dcd08aec6d2d9cca16ef12fad0526 100644 (file)
                                $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);