rpc, setpref: properly save settings to active profile
This commit is contained in:
parent
77e8100669
commit
86d07d367c
|
@ -123,7 +123,7 @@ class RPC extends Handler_Protected {
|
||||||
$key = $_REQUEST['key'];
|
$key = $_REQUEST['key'];
|
||||||
$value = str_replace("\n", "<br/>", $_REQUEST['value']);
|
$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));
|
print json_encode(array("param" =>$key, "value" => $value));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue