// 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:
@@ -49,7 +49,7 @@ if (!headers_sent())
|
|||||||
/* No settings file? goto installer... */
|
/* No settings file? goto installer... */
|
||||||
if (!file_exists(dirname(__FILE__).'/settings.inc.php'))
|
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'))
|
if (!file_exists(dirname(__FILE__).'/../install'))
|
||||||
die('Error: "install" directory is missing');
|
die('Error: "install" directory is missing');
|
||||||
header('Location: install/');
|
header('Location: install/');
|
||||||
|
|||||||
Reference in New Issue
Block a user