$this->callstack['parser'] = [];
$this->config = [];
- $this->page = [];
+
+ $this->page = [
+ 'aside' => '',
+ 'bottom' => '',
+ 'content' => '',
+ 'end' => '',
+ 'footer' => '',
+ 'htmlhead' => '',
+ 'nav' => '',
+ 'page_title' => '',
+ 'right_aside' => '',
+ 'template' => '',
+ 'title' => ''
+ ];
+
$this->pager = [];
$this->query_string = '';
}
}
- $user_theme = defaults($_SESSION, 'theme', $system_theme);
+ if (!empty($_SESSION)) {
+ $user_theme = defaults($_SESSION, 'theme', $system_theme);
+ } else {
+ $user_theme = $system_theme;
+ }
+
// Specific mobile theme override
if (($this->is_mobile || $this->is_tablet) && defaults($_SESSION, 'show-mobile', true)) {
$system_mobile_theme = Config::get('system', 'mobile-theme');