summaryrefslogtreecommitdiff
path: root/classes/feeds.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2014-08-19 14:24:34 +0400
committerAndrew Dolgov <[email protected]>2014-08-19 14:24:34 +0400
commit7eb87b80d533d0bdd538938b69064352a8587204 (patch)
tree04fd041999d73861161555fa88530de9d62a63b5 /classes/feeds.php
parent02b0348a8ae336150f8e08ca7014cd11089384e5 (diff)
add pluginhost HOOK_HEADLINES_BEFORE (refs #814)
Diffstat (limited to 'classes/feeds.php')
-rw-r--r--classes/feeds.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/classes/feeds.php b/classes/feeds.php
index 317a90afc..5ec109614 100644
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -281,6 +281,12 @@ class Feeds extends Handler_Protected {
}
} */
+ if ($offset == 0) {
+ foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_HEADLINES_BEFORE) as $p) {
+ $reply['content'] .= $p->hook_headlines_before($feed, $cat_view, $qfh_ret);
+ }
+ }
+
if ($this->dbh->num_rows($result) > 0) {
$lnum = $offset;