]> git.wh0rd.org Git - tt-rss.git/commitdiff
api: add getPref
authorAndrew Dolgov <fox@bah.org.ru>
Wed, 16 Dec 2009 12:06:59 +0000 (15:06 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Wed, 16 Dec 2009 12:06:59 +0000 (15:06 +0300)
api/index.php

index be266128594ad66d2bf7dc22c7b5ba8eacc2ed30..fd22f4b8bddf47a40c59abf0c1c9811daf43e86f 100644 (file)
        
                        print json_encode($config);
 
+                       break;
 
+               case "getPref":
+                       $pref_name = db_escape_string($_REQUEST["pref_name"]);
+                       print json_encode(array("value" => get_pref($link, $pref_name)));
                        break;
        }