]> git.wh0rd.org Git - tt-rss.git/commitdiff
rpc, setpref: properly save settings to active profile
authorAndrew Dolgov <noreply@fakecake.org>
Sat, 26 Sep 2015 14:31:53 +0000 (17:31 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Sat, 26 Sep 2015 14:31:53 +0000 (17:31 +0300)
classes/rpc.php [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index a84883b..1c733ff
@@ -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));
        }