diff options
author | Andrew Dolgov <[email protected]> | 2012-12-23 14:52:18 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-12-23 14:52:18 +0400 |
commit | 19c7350770788edf3ae0bb1fd6d95876667adbf6 (patch) | |
tree | e539d53acd796375d7feba1efd66d3850fd14db1 /classes/feeds.php | |
parent | 83e6e313be6de7d6e3f155a13c821ab82da12575 (diff) |
experimental new plugin system
Diffstat (limited to 'classes/feeds.php')
-rw-r--r-- | classes/feeds.php | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/classes/feeds.php b/classes/feeds.php index 49adf3879..a90b1c8ed 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -249,7 +249,7 @@ class Feeds extends Handler_Protected { $headlines_count = db_num_rows($result);
- if (get_pref($this->link, 'COMBINED_DISPLAY_MODE')) {
+ /* if (get_pref($this->link, 'COMBINED_DISPLAY_MODE')) {
$button_plugins = array();
foreach (explode(",", ARTICLE_BUTTON_PLUGINS) as $p) {
$pclass = "button_" . trim($p);
@@ -259,7 +259,9 @@ class Feeds extends Handler_Protected { array_push($button_plugins, $plugin);
}
}
- }
+ } */
+
+ global $pluginhost;
if (db_num_rows($result) > 0) {
@@ -706,8 +708,8 @@ class Feeds extends Handler_Protected { //$note_escaped = htmlspecialchars($line['note'], ENT_QUOTES);
- foreach ($button_plugins as $p) {
- $reply['content'] .= $p->render($id, $line);
+ foreach ($pluginhost->get_hooks($pluginhost::HOOK_ARTICLE_BUTTON) as $p) {
+ $reply['content'] .= $p->hook_article_button($line);
}
$reply['content'] .= "<img src=\"images/digest_checkbox.png\"
|