store widescreen status in a cookie (refs #539)
This commit is contained in:
parent
7726063cf2
commit
f03701fe99
|
@ -667,7 +667,8 @@ class RPC extends Handler_Protected {
|
||||||
function setpanelmode() {
|
function setpanelmode() {
|
||||||
$wide = (int) $_REQUEST["wide"];
|
$wide = (int) $_REQUEST["wide"];
|
||||||
|
|
||||||
$_SESSION["widescreen"] = $wide;
|
setcookie("ttrss_widescreen", $wide,
|
||||||
|
time() + SESSION_COOKIE_LIFETIME);
|
||||||
|
|
||||||
print json_encode(array("wide" => $wide));
|
print json_encode(array("wide" => $wide));
|
||||||
}
|
}
|
||||||
|
|
|
@ -1827,7 +1827,7 @@
|
||||||
$params["hotkeys"] = get_hotkeys_map($link);
|
$params["hotkeys"] = get_hotkeys_map($link);
|
||||||
|
|
||||||
$params["csrf_token"] = $_SESSION["csrf_token"];
|
$params["csrf_token"] = $_SESSION["csrf_token"];
|
||||||
$params["widescreen"] = (int) $_SESSION["widescreen"];
|
$params["widescreen"] = (int) $_COOKIE["ttrss_widescreen"];
|
||||||
|
|
||||||
$params['simple_update'] = defined('SIMPLE_UPDATE_MODE') && SIMPLE_UPDATE_MODE;
|
$params['simple_update'] = defined('SIMPLE_UPDATE_MODE') && SIMPLE_UPDATE_MODE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue