From: Andrew Dolgov Date: Wed, 16 Dec 2009 12:06:59 +0000 (+0300) Subject: api: add getPref X-Git-Tag: 1.4.0~183^2~2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=4d557a13c27b113e64bf64087a8bfa63cd3ad234;p=tt-rss.git api: add getPref --- diff --git a/api/index.php b/api/index.php index be266128..fd22f4b8 100644 --- a/api/index.php +++ b/api/index.php @@ -344,7 +344,11 @@ 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; }