don't set session theme unless logged in.

This commit is contained in:
redmatrix 2016-08-16 22:15:51 -07:00
parent b2eede891a
commit 537401cf27
3 changed files with 11 additions and 1 deletions

View file

@ -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);
}
}

View file

@ -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);

View file

@ -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'];
}