From 1baac2803c1dee2fc2005c1039d349f4759d20e3 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 21 Dec 2011 08:46:39 +0400 Subject: add mail and share plugins --- include/functions.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'include/functions.php') diff --git a/include/functions.php b/include/functions.php index c633c03b5..b00817563 100644 --- a/include/functions.php +++ b/include/functions.php @@ -3284,27 +3284,17 @@ onclick=\"editArticleNote($id)\" alt='PubNote' title='".__('Edit article note')."'>"; - $rv['content'] .= "Zoom"; - $button_plugins = explode(",", ARTICLE_BUTTON_PLUGINS); foreach ($button_plugins as $p) { - $pclass = "${p}_button"; + $pclass = trim("${p}_button"); if (class_exists($pclass)) { $plugin = new $pclass($link); - $rv['content'] .= $plugin->render($id); + $rv['content'] .= $plugin->render($id, $line); } } - $rv['content'] .= "Zoom"; - $rv['content'] .= "