From: Andrew Dolgov Date: Sat, 26 Sep 2015 14:31:53 +0000 (+0300) Subject: rpc, setpref: properly save settings to active profile X-Git-Tag: 16.3~107 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=86d07d367cdaa0152190bfa2a01cd0df99fc454d;p=tt-rss.git rpc, setpref: properly save settings to active profile --- diff --git a/classes/rpc.php b/classes/rpc.php old mode 100644 new mode 100755 index a84883bf..1c733ffc --- a/classes/rpc.php +++ b/classes/rpc.php @@ -123,7 +123,7 @@ class RPC extends Handler_Protected { $key = $_REQUEST['key']; $value = str_replace("\n", "
", $_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)); }