implement _CLASSIC_ADAPTIVE

This commit is contained in:
Andrew Dolgov 2013-03-25 21:33:06 +04:00
parent db98542301
commit f4a2f12ad5
1 changed files with 32 additions and 20 deletions

View File

@ -2237,6 +2237,18 @@
$view_query_part = " ";
} else if ($feed != -1) {
if (defined('_CLASSIC_ADAPTIVE')) {
$unread = getFeedUnread($link, $feed, $cat_view);
if ($cat_view && $feed > 0 && $include_children)
$unread += getCategoryChildrenUnread($link, $feed);
if ($unread > 0)
$view_query_part = " unread = true AND ";
} else {
if (get_pref($link, "SORT_HEADLINES_BY_FEED_DATE", $owner_uid)) {
$a_date_sort_field = "updated";
} else {
@ -2258,7 +2270,7 @@
$override_order = "ttrss_feeds.title, $override_order";
}
}
}
}