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