From: Andrew Dolgov Date: Mon, 25 Mar 2013 18:45:40 +0000 (+0400) Subject: add unread_first view mode X-Git-Tag: 1.7.6~282 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2e4faaacffb69142a294bf761bc9079360135781;p=tt-rss.git add unread_first view mode --- diff --git a/include/functions.php b/include/functions.php index fd92348b..115cc035 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2407,6 +2407,10 @@ $order_by = "score DESC, $order_by"; } + if ($view_mode == "unread_first") { + if (!$override_order) $override_order = "unread DESC, $order_by"; + } + if ($override_order) { $order_by = $override_order; } diff --git a/index.php b/index.php index 5be6d12a..c634235a 100644 --- a/index.php +++ b/index.php @@ -160,6 +160,7 @@ +