From: Andrew Dolgov Date: Sun, 23 Oct 2005 11:24:56 +0000 (+0100) Subject: new view mode: unread or updated X-Git-Tag: 1.0.7~35 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=bdd01d3f31b2ab7529bd8d7365a3b0e15b95cb9b;p=tt-rss.git new view mode: unread or updated --- diff --git a/backend.php b/backend.php index 6fe21b92..6f5e2dd5 100644 --- a/backend.php +++ b/backend.php @@ -495,6 +495,10 @@ $view_query_part = " (unread = true OR marked = true) AND "; } + if ($view_mode == "Unread or Updated") { + $view_query_part = " (unread = true OR last_read is NULL) AND "; + } + /* $result = db_query($link, "SELECT count(id) AS total_entries FROM ttrss_entries WHERE $search_query_part diff --git a/tt-rss.php b/tt-rss.php index c02ca711..9d8160df 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -97,6 +97,7 @@ +  Limit: