diff options
author | redmatrix <git@macgirvin.com> | 2016-08-16 22:15:51 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-08-16 22:15:51 -0700 |
commit | 537401cf27c2265e79669fc7e09f32de8b65d082 (patch) | |
tree | fd46c26c992b85b54da3a52e2a1de4e70468a9ad | |
parent | b2eede891ae6ce2db0911ca75649a0a2a3c60212 (diff) | |
download | volse-hubzilla-537401cf27c2265e79669fc7e09f32de8b65d082.tar.gz volse-hubzilla-537401cf27c2265e79669fc7e09f32de8b65d082.tar.bz2 volse-hubzilla-537401cf27c2265e79669fc7e09f32de8b65d082.zip |
don't set session theme unless logged in.
-rw-r--r-- | Zotlabs/Render/Theme.php | 7 | ||||
-rwxr-xr-x | boot.php | 3 | ||||
-rw-r--r-- | include/channel.php | 2 |
3 files changed, 11 insertions, 1 deletions
diff --git a/Zotlabs/Render/Theme.php b/Zotlabs/Render/Theme.php index a732e4fef..62068bc82 100644 --- a/Zotlabs/Render/Theme.php +++ b/Zotlabs/Render/Theme.php @@ -127,5 +127,12 @@ class Theme { return('view/theme/' . $t . '/css/style.css'); } + + function debug() { + logger('system_theme: ' . self::$system_theme); + logger('session_theme: ' . self::$session_theme); + + } + } @@ -2211,6 +2211,9 @@ function construct_page(&$a) { $current_theme = Zotlabs\Render\Theme::current(); + // logger('current_theme: ' . print_r($current_theme,true)); + // Zotlabs\Render\Theme::debug(); + if (($p = theme_include($current_theme[0] . '.js')) != '') head_add_js($p); diff --git a/include/channel.php b/include/channel.php index 62c35e3ff..1179697a4 100644 --- a/include/channel.php +++ b/include/channel.php @@ -936,7 +936,7 @@ function profile_load($nickname, $profile = '') { * load/reload current theme info */ - $_SESSION['theme'] = $p[0]['channel_theme']; +// $_SESSION['theme'] = $p[0]['channel_theme']; } |