From 511abab032a93f0e8e48d1a334367c80eee8f123 Mon Sep 17 00:00:00 2001 From: Christophe HENRY Date: Thu, 27 Oct 2022 23:29:18 +0200 Subject: [PATCH] Fixes a bug on CSS when hosted on filesystem root --- index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/index.php b/index.php index c0b9a8b..2088147 100644 --- a/index.php +++ b/index.php @@ -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"); }