From: Andrew Dolgov Date: Sun, 16 Oct 2005 14:37:15 +0000 (+0100) Subject: add Unread or Starred view mode X-Git-Tag: 1.0.7~47 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b5aa95e736af7bfa586abf013c7a3d5b2dac1f7e;p=tt-rss.git add Unread or Starred view mode --- diff --git a/backend.php b/backend.php index c1fc6020..419d1b98 100644 --- a/backend.php +++ b/backend.php @@ -489,6 +489,10 @@ $view_query_part = " unread = true AND "; } + if ($view_mode == "Unread or Starred") { + $view_query_part = " (unread = true OR marked = true) 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 cc48439f..0bf146c1 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -90,6 +90,7 @@ +  Limit: