fix bug in previous patch, take two on closing #63

This commit is contained in:
Andrew Dolgov 2006-05-17 14:26:10 +01:00
parent e0998414d8
commit 233b8e07d4
2 changed files with 7 additions and 1 deletions

View File

@ -106,6 +106,12 @@
setcookie('ttrss_vf_refresh', FEEDS_FRAME_REFRESH);
setcookie('ttrss_vf_daemon', ENABLE_UPDATE_DAEMON);
if (get_pref($link, "ON_CATCHUP_SHOW_NEXT_FEED")) {
setcookie('ttrss_vf_catchupnext', 1);
} else {
setcookie('ttrss_vf_catchupnext', 0);
}
}
$fetch = $_GET["fetch"];

View File

@ -116,7 +116,7 @@ function viewfeed(feed, skip, subop, doc, is_cat, subop_param) {
var next_unread_feed = getRelativeFeedId(feedlist,
getActiveFeedId(), "next", true);
if (next_unread_feed) {
if (next_unread_feed && getCookie('ttrss_vf_catchupnext') == 1) {
query = query + "&nuf=" + param_escape(next_unread_feed);
setActiveFeedId(next_unread_feed);
}