]> git.wh0rd.org - tt-rss.git/blobdiff - backend.php
subop -> method
[tt-rss.git] / backend.php
index 247cab38b9df45451e9e8e6a35c4eff31800617c..0e485de7099582941f1609f416a71e4418173dc7 100644 (file)
@@ -43,7 +43,7 @@
 
        init_connection($link);
 
-       $subop = $_REQUEST["subop"];
+       $method = $_REQUEST["method"];
        $mode = $_REQUEST["mode"];
 
        if ((!$op || $op == "rss" || $op == "dlg") && !$_REQUEST["noxml"]) {
@@ -69,7 +69,7 @@
                return;
 
        } else if (!($_SESSION["uid"] && validate_session($link))) {
-               if ($op == 'pref-feeds' && $_REQUEST['subop'] == 'add') {
+               if ($op == 'pref-feeds' && $_REQUEST['method'] == 'add') {
                        header("Content-Type: text/html");
                        login_sequence($link);
                        render_login_form($link);
                break; // rpc
 
                case "feeds":
-                       $subop = $_REQUEST["subop"];
+                       $method = $_REQUEST["method"];
                        $root = (bool)$_REQUEST["root"];
 
-                       switch($subop) {
+                       switch($method) {
                                case "catchupAll":
                                        db_query($link, "UPDATE ttrss_user_entries SET
                                                last_read = NOW(),unread = false WHERE owner_uid = " . $_SESSION["uid"]);
                        $omode = db_escape_string($_REQUEST["omode"]);
 
                        $feed = db_escape_string($_REQUEST["feed"]);
-                       $subop = db_escape_string($_REQUEST["subop"]);
+                       $method = db_escape_string($_REQUEST["method"]);
                        $view_mode = db_escape_string($_REQUEST["view_mode"]);
                        $limit = (int) get_pref($link, "DEFAULT_ARTICLE_LIMIT");
                        @$cat_view = db_escape_string($_REQUEST["cat"]) == "true";
 
                        if ($_REQUEST["debug"]) $timing_info = print_checkpoint("04", $timing_info);
 
-                       $ret = format_headlines_list($link, $feed, $subop,
+                       $ret = format_headlines_list($link, $feed, $method,
                                $view_mode, $limit, $cat_view, $next_unread_feed, $offset,
                                $vgroup_last_feed, $override_order);
 
                                $reply['articles'] = $articles;
                        }
 
-//                     if ($subop) {
+//                     if ($method) {
 //                             $reply['counters'] = getAllCounters($link, $omode, $feed);
 //                     }