// 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

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14070 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
dMetzger
2012-03-13 10:42:49 +00:00
parent 5f31d931a1
commit 5acf449c87
+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/');