mirror of
https://tildegit.org/sbgodin/HtmGem.git
synced 2023-08-25 13:53:12 +02:00
Fixes a bug on CSS when hosted on filesystem root
This commit is contained in:
parent
536c8101c5
commit
511abab032
@ -122,6 +122,7 @@ if (empty($style)) {
|
||||
$gt_html->addCss($php_self_dir.DEFAULT_CSS);
|
||||
} else {
|
||||
$style = preg_replace("/,/", "/", $style);
|
||||
if ("/" == $php_self_dir) $php_self_dir = ""; # dirname() never use a final slash except for the root
|
||||
$gt_html->addCss("$php_self_dir/css/$style");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user