From 33c4bd89681f0065d50e5f862bf1a6732a04c49c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 13 Jul 2015 22:04:21 +0300 Subject: [PATCH] fix error feed (i.e. when requested feed no longer exists) not display properly --- classes/feeds.php | 2 +- js/viewfeed.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/feeds.php b/classes/feeds.php index 1d106ea2..4effe3b7 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -991,7 +991,7 @@ class Feeds extends Handler_Protected { private function generate_error_feed($error) { $reply = array(); - $reply['headlines']['id'] = -6; + $reply['headlines']['id'] = -7; $reply['headlines']['is_cat'] = false; $reply['headlines']['toolbar'] = ''; diff --git a/js/viewfeed.js b/js/viewfeed.js index dff11556..56b15116 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -46,7 +46,7 @@ function headlines_callback2(transport, offset, background, infscroll_req) { return; } - if (feed_id != getActiveFeedId() || is_cat != activeFeedIsCat()) + if (feed_id != -7 && (feed_id != getActiveFeedId() || is_cat != activeFeedIsCat())) return; /* dijit.getEnclosingWidget( -- 2.39.5