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);
break;
case "getPref":
$pref_name = db_escape_string($_REQUEST["pref_name"]);
print json_encode(array("value" => get_pref($link, $pref_name)));
break;
}