diff options
Diffstat (limited to 'classes')
-rw-r--r-- | classes/handler/public.php | 3 | ||||
-rw-r--r-- | classes/opml.php | 2 |
2 files changed, 3 insertions, 2 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); } diff --git a/classes/opml.php b/classes/opml.php index e9a07bb52..cac82f15d 100644 --- a/classes/opml.php +++ b/classes/opml.php @@ -97,7 +97,7 @@ class Opml extends Handler_Protected { $html_url_qpart = ""; } - $out .= "<outline text=\"$title\" xmlUrl=\"$url\" $html_url_qpart/>\n"; + $out .= "<outline type=\"rss\" text=\"$title\" title=\"$title\" xmlUrl=\"$url\" $html_url_qpart/>\n"; } if ($cat_title) $out .= "</outline>\n"; |