diff options
author | Andrew Dolgov <[email protected]> | 2005-10-23 12:24:56 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-10-23 12:24:56 +0100 |
commit | bdd01d3f31b2ab7529bd8d7365a3b0e15b95cb9b (patch) | |
tree | bd1e3fd2b525906100db03fede3865f285498b97 | |
parent | 7cc6112aaac432ac2ddfd614fca222bd3ca4ed4c (diff) |
new view mode: unread or updated
-rw-r--r-- | backend.php | 4 | ||||
-rw-r--r-- | tt-rss.php | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/backend.php b/backend.php index 6fe21b923..6f5e2dd59 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 c02ca7110..9d8160df7 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -97,6 +97,7 @@ <option>Starred</option> <option selected>Unread</option> <option>Unread or Starred</option> + <option>Unread or Updated</option> </select> Limit: |