]> git.wh0rd.org - tt-rss.git/commitdiff
api: use is_cat in getArticles and catchupFeed for consistency with other methods
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 16 Dec 2010 06:47:12 +0000 (09:47 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 16 Dec 2010 06:47:12 +0000 (09:47 +0300)
api/index.php

index e396551d453145ca0ba86bede77dd0fee4273b4c..53431f479f09615e4b9b39b393533e58849c7421 100644 (file)
 
                case "catchupFeed":
                        $feed_id = db_escape_string($_REQUEST["feed_id"]);
-                       $is_cat = db_escape_string($_REQUEST["category"]);
+                       $is_cat = db_escape_string($_REQUEST["is_cat"]);
 
                        catchup_feed($link, $feed_id, $is_cat);
 
                
                /* Method added for ttrss-reader for Android */
                case "getArticles":
-                       $isCategory = (int)db_escape_string($_REQUEST["is_category"]);
+                       $isCategory = (int)db_escape_string($_REQUEST["is_cat"]);
                        $id = (int)db_escape_string($_REQUEST["id"]);
                        $displayUnread = (int)db_escape_string($_REQUEST["unread"]);
                        $limit = (int)db_escape_string($_REQUEST["limit"]);