]> git.p6c8.net - jirafeau_project.git/blobdiff - lib/functions.php
[BUGFIX] fix proposed web root during installation
[jirafeau_project.git] / lib / functions.php
index 95a5595ce4a647a9e7ee6bb42cca981176ff0800..536bfe1bcd0d423b80a215d07fb7210ea218d178 100644 (file)
@@ -1562,5 +1562,5 @@ function jirafeau_add_ending_slash($path)
 
 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