]> git.wh0rd.org Git - tt-rss.git/commitdiff
syndicated feeds: force sort by last_read for published
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 21 Oct 2012 20:05:20 +0000 (00:05 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 21 Oct 2012 20:05:20 +0000 (00:05 +0400)
classes/handler/public.php

index e5c543b304cb18e583768445cbe50eca20cc1e16..d3c3fc094cba5d6bd38dbf7a64643c4fb23ea031 100644 (file)
@@ -20,6 +20,9 @@ class Handler_Public extends Handler {
                        $date_sort_field = "date_entered";
                }
 
+               if ($feed == -2)
+                       $date_sort_field = "last_read";
+
                $qfh_ret = queryFeedHeadlines($this->link, $feed,
                        $limit, $view_mode, $is_cat, $search, $search_mode,
                        $match_on, "$date_sort_field DESC", $offset, $owner_uid);