summaryrefslogtreecommitdiff
path: root/classes/pref
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-07-10 16:41:48 +0400
committerAndrew Dolgov <[email protected]>2013-07-10 16:41:48 +0400
commitf48d89fd58aa25a171f3c4f6ab5c7fdaaae35f02 (patch)
tree8ba1a6e8f683ceb8342ab9c81dc5e487ea50966e /classes/pref
parentbaf3fcf93a7d911a8b85ec54eb3435d91bddf6b7 (diff)
parent425a6edc6b3e84d0cc0ed144ab66421adac33fa5 (diff)
Merge branch 'hookhead' of git://github.com/justauserx/Tiny-Tiny-RSS into justauserx-hookhead
Diffstat (limited to 'classes/pref')
-rw-r--r--classes/pref/filters.php10
1 files changed, 6 insertions, 4 deletions
diff --git a/classes/pref/filters.php b/classes/pref/filters.php
index 6a70e622c..5d19a5556 100644
--- a/classes/pref/filters.php
+++ b/classes/pref/filters.php
@@ -95,14 +95,16 @@ class Pref_Filters extends Handler_Protected {
print "<div class=\"filterTestHolder\">";
print "<table width=\"100%\" cellspacing=\"0\" id=\"prefErrorFeedList\">";
-
+ $line["content_preview"] = strip_tags($line["content_preview"]), 100, '...');
while ($line = $this->dbh->fetch_assoc($result)) {
+ foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_QUERY_HEADLINES) as $p) {
+ $line = $p->hook_query_headlines($line, 100);
+ }
$entry_timestamp = strtotime($line["updated"]);
$entry_tags = get_article_tags($line["id"], $_SESSION["uid"]);
- $content_preview = truncate_string(
- strip_tags($line["content_preview"]), 100, '...');
+ $content_preview = $line["content_preview"];
if ($line["feed_title"])
$feed_title = $line["feed_title"];
@@ -118,7 +120,7 @@ class Pref_Filters extends Handler_Protected {
print "&nbsp;(";
print "<b>" . $feed_title . "</b>";
print "):&nbsp;";
- print "<span class=\"insensitive\">" . $content_preview . "</span>";
+ print "<span class=\"insensitive\">" . $line["content_preview"] . "</span>";
print " " . mb_substr($line["date_entered"], 0, 16);
print "</td></tr>";