diff options
author | Mario <mario@mariovavti.com> | 2024-03-17 22:21:55 +0100 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-03-17 22:21:55 +0100 |
commit | b05845f495e7561eddf2ad5b0c9325649f5289af (patch) | |
tree | 2cc6e8f35b3ca1435476ca45e75885e01b3a287b /boot.php | |
parent | 732dbfd6f56510127405767ca86af240d3c85cf4 (diff) | |
download | volse-hubzilla-b05845f495e7561eddf2ad5b0c9325649f5289af.tar.gz volse-hubzilla-b05845f495e7561eddf2ad5b0c9325649f5289af.tar.bz2 volse-hubzilla-b05845f495e7561eddf2ad5b0c9325649f5289af.zip |
cleanup some ancient code and fix check for $path so that it will not pass if theme_include() will not return anything. also add an empty zen.css file for the zen template
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -2331,8 +2331,6 @@ function construct_page() { require_once(theme_include('theme_init.php')); - $installing = false; - $uid = ((App::$profile_uid) ? App::$profile_uid : local_channel()); $navbar = get_config('system', 'navbar', 'default'); @@ -2344,14 +2342,10 @@ function construct_page() { $navbar = App::$layout['navbar']; } - if (App::$module == 'setup') { - $installing = true; - } - else { + if (App::$module !== 'setup') { nav($navbar); } - $current_theme = Zotlabs\Render\Theme::current(); // logger('current_theme: ' . print_r($current_theme,true)); // Zotlabs\Render\Theme::debug(); @@ -2372,7 +2366,7 @@ function construct_page() { if (($p = theme_include('mod_' . App::$module . '.css')) != '') head_add_css('mod_' . App::$module . '.css'); - head_add_css(Zotlabs\Render\Theme::url($installing)); + head_add_css(Zotlabs\Render\Theme::url()); if (($p = theme_include('mod_' . App::$module . '.js')) != '') head_add_js('mod_' . App::$module . '.js'); |