rpc, setpref: properly save settings to active profile

This commit is contained in:
Andrew Dolgov 2015-09-26 17:31:53 +03:00
parent 77e8100669
commit 86d07d367c
1 changed files with 1 additions and 1 deletions

2
classes/rpc.php Normal file → Executable file
View File

@ -123,7 +123,7 @@ class RPC extends Handler_Protected {
$key = $_REQUEST['key'];
$value = str_replace("\n", "<br/>", $_REQUEST['value']);
set_pref($key, $value, $_SESSION['uid'], $key != 'USER_STYLESHEET');
set_pref($key, $value, false, $key != 'USER_STYLESHEET');
print json_encode(array("param" =>$key, "value" => $value));
}