aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-11-07 19:34:00 -0800
committerzotlabs <mike@macgirvin.com>2017-11-07 19:34:00 -0800
commit92e0c502f76f5a3acc0498f45a0fe836973c554c (patch)
treeabe4ce2326511a2a2fe6228fe310cb968cdb8df6
parent7b69dc574b1527fc0e16a0c2f91a726132987e2f (diff)
downloadvolse-hubzilla-92e0c502f76f5a3acc0498f45a0fe836973c554c.tar.gz
volse-hubzilla-92e0c502f76f5a3acc0498f45a0fe836973c554c.tar.bz2
volse-hubzilla-92e0c502f76f5a3acc0498f45a0fe836973c554c.zip
make most recent cloud_tiles setting for local channels persistent across logins
-rw-r--r--Zotlabs/Module/Cloud_tiles.php4
-rw-r--r--include/security.php1
2 files changed, 5 insertions, 0 deletions
diff --git a/Zotlabs/Module/Cloud_tiles.php b/Zotlabs/Module/Cloud_tiles.php
index 45124cdfa..da551904f 100644
--- a/Zotlabs/Module/Cloud_tiles.php
+++ b/Zotlabs/Module/Cloud_tiles.php
@@ -11,6 +11,10 @@ class Cloud_tiles extends \Zotlabs\Web\Controller {
else
$_SESSION['cloud_tiles'] = 1;
+ if(local_channel()) {
+ set_pconfig(local_channel(),'system','cloud_tiles',$_SESSION['cloud_tiles']);
+ }
+
goaway(z_root() . '/' . hex2bin(argv(1)));
}
diff --git a/include/security.php b/include/security.php
index 450cc4f69..8b7e7d076 100644
--- a/include/security.php
+++ b/include/security.php
@@ -264,6 +264,7 @@ function change_channel($change_channel) {
App::set_channel($r[0]);
$_SESSION['theme'] = $r[0]['channel_theme'];
$_SESSION['mobile_theme'] = get_pconfig(local_channel(),'system', 'mobile_theme');
+ $_SESSION['cloud_tiles'] = get_pconfig(local_channel(),'system', 'cloud_tiles');
date_default_timezone_set($r[0]['channel_timezone']);
$ret = $r[0];
}