From ddad5b403a2b9797ccfd22e5bf7a9d4bc948a3f5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 17 Mar 2008 22:34:09 +0000 Subject: [PATCH] Fix: Call install if no conf file --- htdocs/master.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/htdocs/master.inc.php b/htdocs/master.inc.php index 48e7fbf8f48..4b0cf1bbc2b 100644 --- a/htdocs/master.inc.php +++ b/htdocs/master.inc.php @@ -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.
'."\n";