summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-29 09:46:38 +0400
committerAndrew Dolgov <[email protected]>2013-03-29 09:46:38 +0400
commit9b523c01f9c2f0945a8127a560ce6c439ba6aee2 (patch)
tree86ce9f256292ced22734bb94a9e07ce99ac5959f
parentd296ba50d4e7219bb153634e656cd9c841ba42cd (diff)
remove unused view modes handling
-rw-r--r--include/functions.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/include/functions.php b/include/functions.php
index 951bf230f..d789f29e3 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -2250,7 +2250,7 @@
$view_query_part = "";
- if ($view_mode == "adaptive" || $view_query_part == "noscores") {
+ if ($view_mode == "adaptive") {
if ($search) {
$view_query_part = " ";
} else if ($feed != -1) {
@@ -2282,10 +2282,6 @@
$view_query_part = " unread = true AND ";
}
- if ($view_mode == "updated") {
- $view_query_part = " (last_read is null and unread = false) AND ";
- }
-
if ($limit > 0) {
$limit_query_part = "LIMIT " . $limit;
}
@@ -2426,10 +2422,6 @@
$order_by = "$date_sort_field DESC, updated DESC";
- if ($view_mode != "noscores") {
- $order_by = "score DESC, $order_by";
- }
-
if ($view_mode == "unread_first") {
$order_by = "unread DESC, $order_by";
}