// Changed the order of the 2 part of a condition that checked the root directory in order to avoid a warning when an open base dir restriction was in effect

This commit is contained in:
dMetzger
2012-03-13 10:42:49 +00:00
parent b0f91db138
commit ed033a2473
+1 -1
View File
@@ -49,7 +49,7 @@ if (!headers_sent())
/* No settings file? goto installer... */
if (!file_exists(dirname(__FILE__).'/settings.inc.php'))
{
$dir = ((is_dir($_SERVER['REQUEST_URI']) || substr($_SERVER['REQUEST_URI'], -1) == '/') ? $_SERVER['REQUEST_URI'] : dirname($_SERVER['REQUEST_URI']).'/');
$dir = ((substr($_SERVER['REQUEST_URI'], -1) == '/' || is_dir($_SERVER['REQUEST_URI'])) ? $_SERVER['REQUEST_URI'] : dirname($_SERVER['REQUEST_URI']).'/');
if (!file_exists(dirname(__FILE__).'/../install'))
die('Error: "install" directory is missing');
header('Location: install/');