From: Andrew Dolgov Date: Wed, 21 Aug 2013 14:26:34 +0000 (+0400) Subject: unfuck headlines_hook for syndicated feeds X-Git-Tag: 1.10~26 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=bc262b6778406208a83d4dac434b9d5141f15f9f;p=tt-rss.git unfuck headlines_hook for syndicated feeds --- diff --git a/classes/handler/public.php b/classes/handler/public.php index 7fb2771b..0bdc2def 100644 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -85,8 +85,9 @@ class Handler_Public extends Handler { } $tpl->setVariable('SELF_URL', htmlspecialchars(get_self_url_prefix()), true); - $line["content_preview"] = truncate_string(strip_tags($line["content_preview"]), 100, '...'); while ($line = $this->dbh->fetch_assoc($result)) { + $line["content_preview"] = truncate_string(strip_tags($line["content_preview"]), 100, '...'); + foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_QUERY_HEADLINES) as $p) { $line = $p->hook_query_headlines($line); }