]> git.wh0rd.org Git - tt-rss.git/commitdiff
disable application/xml content-type for op=view zoom mode
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 16 Dec 2008 09:24:48 +0000 (10:24 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 16 Dec 2008 09:24:48 +0000 (10:24 +0100)
backend.php

index b298ec738a058d54a591b4e9c8b5743eece92580..13c470a988a6f0d24449175a9d7aa18a00cd386b 100644 (file)
        init_connection($link);
 
        $op = $_REQUEST["op"];
+       $mode = $_REQUEST["mode"];
 
        $print_exec_time = false;
 
-       if ((!$op || $op == "rpc" || $op == "rss" || $op == "view" || 
+       if ((!$op || $op == "rpc" || $op == "rss" || 
+                       ($op == "view" && $mode != "zoom") || 
                        $op == "digestSend" || $op == "viewfeed" || $op == "publish" ||
                        $op == "globalUpdateFeeds") && !$_REQUEST["noxml"]) {
                                header("Content-Type: application/xml; charset=utf-8");