]> git.p6c8.net - jirafeau.git/commitdiff
[BUGFIX] fix proposed web root during installation
authorJerome Jutteau <jerome@jutteau.fr>
Sun, 3 Jul 2022 15:17:32 +0000 (17:17 +0200)
committerJerome Jutteau <jerome@jutteau.fr>
Sun, 3 Jul 2022 15:17:32 +0000 (17:17 +0200)
Signed-off-by: Jerome Jutteau <jerome@jutteau.fr>
lib/functions.php

index 95a5595ce4a647a9e7ee6bb42cca981176ff0800..536bfe1bcd0d423b80a215d07fb7210ea218d178 100644 (file)
@@ -1562,5 +1562,5 @@ function jirafeau_add_ending_slash($path)
 
 function jirafeau_default_web_root()
 {
 
 function jirafeau_default_web_root()
 {
-    return $_SERVER['HTTP_HOST'] . str_replace(basename(__FILE__), '', $_SERVER['REQUEST_URI']);
+    return $_SERVER['HTTP_HOST'] . str_replace('install.php', '', $_SERVER['REQUEST_URI']);
 }
 }

patrick-canterino.de