mirror of
https://tildegit.org/sbgodin/HtmGem.git
synced 2023-08-25 13:53:12 +02:00
Fixes bug about CSS not applied correctly
The default CSS was loaded anyway, in addition to the custom css.
This commit is contained in:
parent
211518e098
commit
8e74403bc4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user