Fixes a bug on CSS when hosted on filesystem root

This commit is contained in:
Christophe HENRY 2022-10-27 23:29:18 +02:00
parent 536c8101c5
commit 511abab032
1 changed files with 1 additions and 0 deletions

View File

@ -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");
}