From b0f379dfff8738defba307341887ee5938625f55 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 1 Apr 2011 09:36:29 +0400 Subject: add experimental support for pubsubhubbub in published feed, bump config version (refs #251) --- functions.php | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'functions.php') diff --git a/functions.php b/functions.php index d33b30454..1e843dd14 100644 --- a/functions.php +++ b/functions.php @@ -110,6 +110,7 @@ require_once "lib/magpierss/rss_fetch.inc"; require_once 'lib/magpierss/rss_utils.inc'; require_once 'lib/htmlpurifier/library/HTMLPurifier.auto.php'; + require_once 'lib/pubsubhubbub/publisher.php'; $config = HTMLPurifier_Config::createDefault(); @@ -3583,13 +3584,19 @@ $feed_site_url = $qfh_ret[2]; $last_error = $qfh_ret[3]; -// if (!$feed_site_url) $feed_site_url = "http://localhost/"; + if (!$feed_site_url) $feed_site_url = get_self_url_prefix(); print " - - - $feed_title + + "; + + if (PUBSUBHUBBUB_HUB && $feed == -2) { + print ""; + } + + print "$feed_title $feed_site_url Feed generated by Tiny Tiny RSS"; @@ -4100,8 +4107,10 @@ $reply .= ""; + if ($is_cat) $cat_q = "&is_cat=$is_cat"; + $rss_link = htmlspecialchars(get_self_url_prefix() . - "/backend.php?op=rss&id=$feed_id&is_cat=$is_cat&view_mode=$view_mode$search_q"); + "/backend.php?op=rss&id=$feed_id$cat_q$search_q"); $reply .= ""; -- cgit v1.2.3