From 537401cf27c2265e79669fc7e09f32de8b65d082 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Tue, 16 Aug 2016 22:15:51 -0700 Subject: don't set session theme unless logged in. --- Zotlabs/Render/Theme.php | 7 +++++++ boot.php | 3 +++ include/channel.php | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) 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); + + } + } diff --git a/boot.php b/boot.php index 19d64bd61..d50ffbc17 100755 --- a/boot.php +++ b/boot.php @@ -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']; } -- cgit v1.2.3