]> git.wh0rd.org Git - tt-rss.git/commitdiff
remove unused view modes handling
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 29 Mar 2013 05:46:38 +0000 (09:46 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Fri, 29 Mar 2013 05:46:38 +0000 (09:46 +0400)
include/functions.php

index 951bf230fff0f06fe4984feca329a6a3264e1e0b..d789f29e33428b55ded6191f32ddb3dc507c6f5d 100644 (file)
 
                        $view_query_part = "";
 
-                       if ($view_mode == "adaptive" || $view_query_part == "noscores") {
+                       if ($view_mode == "adaptive") {
                                if ($search) {
                                        $view_query_part = " ";
                                } else if ($feed != -1) {
                                $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;
                        }
 
                        $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";
                        }