generate_syndicated_feed: only enable pubsub hub for published feed

This commit is contained in:
Andrew Dolgov 2011-04-04 13:42:14 +04:00
parent 9b1a708165
commit 364e3c859d

View file

@ -3665,7 +3665,7 @@
$tpl->setVariable('VERSION', VERSION);
$tpl->setVariable('FEED_URL', htmlspecialchars($feed_self_url));
if (PUBSUBHUBBUB_HUB) {
if (PUBSUBHUBBUB_HUB && $feed == -2) {
$tpl->setVariable('HUB_URL', htmlspecialchars(PUBSUBHUBBUB_HUB));
$tpl->addBlock('feed_hub');
}