]> git.wh0rd.org Git - tt-rss.git/commitdiff
mobile: properly load additional headlines when browsing categories (closes #329)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 29 Mar 2011 10:10:12 +0000 (14:10 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 29 Mar 2011 10:10:12 +0000 (14:10 +0400)
mobile/functions.php

index 3d3cdc6608f836928d15ea0229305378eda22702..6e5d1dafe0beb043b6c734aa4310870c6fc17830 100644 (file)
 
                if ($num_headlines > 0 && ($num_unread == 0 || $num_unread > $next_offset)) {
 
-                       $articles_url = "feed.php?id=$feed_id&cat=$cat_id&skip=$next_offset".
-                               "&search=$search";
+                       if ($is_cat) {
+                               $articles_url = "feed.php?id=$feed_id&skip=$next_offset".
+                                       "&search=$search&is_cat=true";
+                       } else {
+                               $articles_url = "feed.php?id=$feed_id&cat=$cat_id&skip=$next_offset".
+                                       "&search=$search";
+                       }
 
                        print "<li><a href=\"$articles_url\"
                                target=\"_replace\">Get more articles...</a></li>";