syndicated feeds: force sort by last_read for published

This commit is contained in:
Andrew Dolgov 2012-10-22 00:05:20 +04:00
parent 8c25264dfd
commit 008ebad928
1 changed files with 3 additions and 0 deletions

View 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);