From d68b403f338909634d5d5fe6766847ca645913bc Mon Sep 17 00:00:00 2001 From: Christophe HENRY Date: Fri, 29 Jul 2022 09:58:07 +0200 Subject: [PATCH] Fixes bug about CSS not applied correctly The default CSS was loaded anyway, in addition to the custom css. --- index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 2f85b0f..c8d2a6a 100644 --- a/index.php +++ b/index.php @@ -128,11 +128,12 @@ if ("none" == $style) { # Warning, using htmhem.php?url=… will make $localCss not found # as the path is relative to htmgem.php and not / ! $gt_html->addCss($localCss); + } else { // No local style + $gt_html->addCss($php_self_dir."/css/htmgem.css"); } } else { #TODO: regex check for $style $gt_html->addCss("$php_self_dir/css/$style.css"); } -if (empty($gt_html->getCss)) $gt_html->addCss($php_self_dir."/css/htmgem.css"); if ($urlRewriting) echo \htmgem\html\getHtmlWithMenu($gt_html, $scheme, $domain, $url);