mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 14:15:56 +00:00
rpc, setpref: properly save settings to active profile
This commit is contained in:
2
classes/rpc.php
Normal file → Executable file
2
classes/rpc.php
Normal file → Executable 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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user