summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-08-21 18:26:34 +0400
committerAndrew Dolgov <[email protected]>2013-08-21 18:26:34 +0400
commitbc262b6778406208a83d4dac434b9d5141f15f9f (patch)
tree86abfb54dac35f43080a9e031e3529d7399b0cb7 /classes
parent63df96dd9fa308c9279a383ec27de4eec7254045 (diff)
unfuck headlines_hook for syndicated feeds
Diffstat (limited to 'classes')
-rw-r--r--classes/handler/public.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/handler/public.php b/classes/handler/public.php
index 7fb2771bd..0bdc2def5 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);
}