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…
Reference in New Issue
Block a user