Fix: Call install if no conf file

This commit is contained in:
Laurent Destailleur 2008-03-17 22:34:09 +00:00
parent fc89d15020
commit ddad5b403a

View File

@ -62,7 +62,12 @@ error_reporting(E_ALL ^ E_NOTICE);
// Include configuration
$result=@include_once("conf/conf.php");
if (! $result && $_SERVER["GATEWAY_INTERFACE"])
{
// If install not done and we are in a web session
header("Location: install/index.php");
exit;
}
if (empty($dolibarr_main_db_host))
{
print 'Error: Dolibarr setup was run but was not completed.<br>'."\n";