api: add getPref
This commit is contained in:
parent
7c6d05cda4
commit
4d557a13c2
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue