Parcourir la source

Make sure that we reference the config file using an absolute path... just in case...

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1775 a333f486-631f-4898-b8df-5754b55c2be0
dflaven il y a 13 ans
Parent
commit
8f68dfe363
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      index.php

+ 1 - 1
index.php

@@ -7,7 +7,7 @@ $sSetupPage = './setup/index.php';
  * Check that the configuration file exists and has the appropriate access rights
  * If the file does not exist, launch the configuration wizard to create it
  */  
-if (file_exists($sConfigFile))
+if (file_exists(dirname(__FILE__).'/'.$sConfigFile))
 {
 	if (!is_readable($sConfigFile))
 	{