From 2e4faaacffb69142a294bf761bc9079360135781 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 25 Mar 2013 22:45:40 +0400 Subject: [PATCH] add unread_first view mode --- include/functions.php | 4 ++++ index.php | 1 + 2 files changed, 5 insertions(+) diff --git a/include/functions.php b/include/functions.php index fd92348be..115cc0352 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 5be6d12a4..c634235ab 100644 --- a/index.php +++ b/index.php @@ -160,6 +160,7 @@ +