From b05845f495e7561eddf2ad5b0c9325649f5289af Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 17 Mar 2024 22:21:55 +0100 Subject: 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 --- boot.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 1eb64cb0a..1dc29051e 100644 --- a/boot.php +++ b/boot.php @@ -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'); -- cgit v1.2.3