fix ARTICLE_BUTTON_PLUGINS not loaded when string contains spaces

This commit is contained in:
Andrew Dolgov 2012-10-28 13:02:50 +04:00
parent bed064442a
commit 8b299a163e
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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);