Bug fix for setups on the root URI/directory (/)
This commit is contained in:
parent
ee9cc2ec24
commit
0a6aab860a
2
test.php
2
test.php
@ -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}'";
|
||||||
|
Loading…
Reference in New Issue
Block a user