published and starred feeds: allow reversing headlines

This commit is contained in:
Andrew Dolgov 2013-03-26 09:02:23 +04:00
parent 434bf85626
commit 1bd7413f6a
1 changed files with 15 additions and 2 deletions

View File

@ -2336,7 +2336,13 @@
$vfeed_query_part = "ttrss_feeds.title AS feed_title,";
$allow_archived = true;
if (!$override_order) $override_order = "last_marked DESC, updated DESC";
if (!$override_order) {
if (get_pref($link, 'REVERSE_HEADLINES', $owner_uid)) {
$override_order = "date_entered";
} else {
$override_order = "last_marked DESC, date_entered DESC";
}
}
} else if ($feed == -2) { // published virtual feed OR labels category
@ -2345,7 +2351,14 @@
$vfeed_query_part = "ttrss_feeds.title AS feed_title,";
$allow_archived = true;
if (!$override_order) $override_order = "last_published DESC, updated DESC";
if (!$override_order) {
if (get_pref($link, 'REVERSE_HEADLINES', $owner_uid)) {
$override_order = "date_entered";
} else {
$override_order = "last_published DESC, date_entered DESC";
}
}
} else {
$vfeed_query_part = "ttrss_feeds.title AS feed_title,";