1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 08:55:55 +00:00

disable SORT_HEADLINES_BY_FEED_DATE; replace with a toolbar newest first order

This commit is contained in:
Andrew Dolgov
2013-03-28 20:51:06 +04:00
parent b9a06a0e39
commit 8aa01d7989
4 changed files with 9 additions and 14 deletions

View File

@@ -14,11 +14,7 @@ class Handler_Public extends Handler {
if (!$limit) $limit = 100;
if (get_pref($this->link, "SORT_HEADLINES_BY_FEED_DATE", $owner_uid)) {
$date_sort_field = "updated";
} else {
$date_sort_field = "date_entered";
}
$date_sort_field = "date_entered DESC, updated DESC";
if ($feed == -2)
$date_sort_field = "last_published";
@@ -27,7 +23,7 @@ class Handler_Public extends Handler {
$qfh_ret = queryFeedHeadlines($this->link, $feed,
$limit, $view_mode, $is_cat, $search, $search_mode,
"$date_sort_field DESC", $offset, $owner_uid,
$date_sort_field, $offset, $owner_uid,
false, 0, false, true);
$result = $qfh_ret[0];