diff options
author | Andrew Dolgov <[email protected]> | 2011-06-14 12:39:37 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-06-14 12:39:37 +0400 |
commit | 2e2d0802f1ae4bd8cc82ddc53383b3927d4a1064 (patch) | |
tree | d78890e8f916f4b55ef9beac527c987ec2763b4a /mobile/functions.php | |
parent | 6b9cb4500592aab6817c7d30d2f8da1a084beb66 (diff) |
mobile: rename HIDE_READ option, show read articles when it is disabled (refs #348)
Diffstat (limited to 'mobile/functions.php')
-rw-r--r-- | mobile/functions.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mobile/functions.php b/mobile/functions.php index 542420afe..d99a47546 100644 --- a/mobile/functions.php +++ b/mobile/functions.php @@ -323,7 +323,11 @@ $feed_id = $feed_id; $limit = 15; $filter = ''; - $view_mode = 'adaptive'; + + if (!mobile_get_pref($link, "HIDE_READ")) + $view_mode = "all_articles"; + else + $view_mode = 'adaptive'; if ($search) { $search_mode = 'this_feed'; @@ -334,7 +338,8 @@ } $qfh_ret = queryFeedHeadlines($link, $feed_id, $limit, - $view_mode, $is_cat, $search, $search_mode, $match_on, false, $offset); + $view_mode, $is_cat, $search, $search_mode, $match_on, + "unread DESC, updated, score", $offset); $result = $qfh_ret[0]; $feed_title = $qfh_ret[1]; |