mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-17 17:21:30 +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'];
|
$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));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user