1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 18:55:55 +00:00

store widescreen status in a cookie (refs #539)

This commit is contained in:
Andrew Dolgov
2013-02-20 14:40:13 +04:00
parent 7726063cf2
commit f03701fe99
2 changed files with 3 additions and 2 deletions

View File

@@ -667,7 +667,8 @@ class RPC extends Handler_Protected {
function setpanelmode() {
$wide = (int) $_REQUEST["wide"];
$_SESSION["widescreen"] = $wide;
setcookie("ttrss_widescreen", $wide,
time() + SESSION_COOKIE_LIFETIME);
print json_encode(array("wide" => $wide));
}