X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/ec83f46ba45cbbbd25cc29a5de0082cba715f3a7..2386eafc67da64152da092362b32ca2b1eb249ab:/install.php diff --git a/install.php b/install.php index 1210753..b729be5 100644 --- a/install.php +++ b/install.php @@ -225,7 +225,7 @@ case 2: <td class = "field"><input type = "text" name = "web_root" id = "input_web_root" value = "<?php echo(empty($cfg['web_root']) ? - 'http://' . $_SERVER['HTTP_HOST'] . str_replace(basename(__FILE__), + $_SERVER['HTTP_HOST'] . str_replace(basename(__FILE__), '', $_SERVER['REQUEST_URI']) : $cfg['web_root']); ?>" size = "40" /></td> </tr> <tr> <td class = "info" colspan = "2"><?php