Bug fix for setups on the root URI/directory (/)

This commit is contained in:
******* ****** 2010-11-26 01:13:36 -08:00
parent ee9cc2ec24
commit 0a6aab860a

View File

@ -58,7 +58,7 @@
// Configuration
title('Configuration');
$root = dirname($_SERVER['REQUEST_URI']) . '/';
$root = dirname($_SERVER['REQUEST_URI']) . (dirname($_SERVER['REQUEST_URI']) == '/' ? '' : '/');
if(ROOT != $root) {
$body .= check('Correct document root.', 'error');
$todo[] = "instance-config.php: Change ROOT to '{$root}'";