// 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:
1 parent
5f31d931a1
commit
5acf449c87
1 file changed
+1
-1
@@ -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