1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 19:55:55 +00:00

api: add getPref

This commit is contained in:
Andrew Dolgov
2009-12-16 15:06:59 +03:00
parent 7c6d05cda4
commit 4d557a13c2

View File

@@ -344,7 +344,11 @@
print json_encode($config); 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; break;
} }