mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:35:30 +00:00
don't set session theme unless logged in.
This commit is contained in:
parent
b2eede891a
commit
537401cf27
3 changed files with 11 additions and 1 deletions
|
@ -127,5 +127,12 @@ class Theme {
|
||||||
|
|
||||||
return('view/theme/' . $t . '/css/style.css');
|
return('view/theme/' . $t . '/css/style.css');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function debug() {
|
||||||
|
logger('system_theme: ' . self::$system_theme);
|
||||||
|
logger('session_theme: ' . self::$session_theme);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
3
boot.php
3
boot.php
|
@ -2211,6 +2211,9 @@ function construct_page(&$a) {
|
||||||
|
|
||||||
$current_theme = Zotlabs\Render\Theme::current();
|
$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')) != '')
|
if (($p = theme_include($current_theme[0] . '.js')) != '')
|
||||||
head_add_js($p);
|
head_add_js($p);
|
||||||
|
|
||||||
|
|
|
@ -936,7 +936,7 @@ function profile_load($nickname, $profile = '') {
|
||||||
* load/reload current theme info
|
* load/reload current theme info
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$_SESSION['theme'] = $p[0]['channel_theme'];
|
// $_SESSION['theme'] = $p[0]['channel_theme'];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue