diff --git a/htdocs/install/check.php b/htdocs/install/check.php
index 6b852165c5a..e74d7eb50a2 100644
--- a/htdocs/install/check.php
+++ b/htdocs/install/check.php
@@ -81,6 +81,7 @@ else
clearstatcache();
if (is_readable($conffile) && filesize($conffile) > 8)
{
+ dolibarr_install_syslog("conf file '$conffile' already exists");
$confexists=1;
include_once($conffile);
@@ -91,9 +92,10 @@ if (is_readable($conffile) && filesize($conffile) > 8)
else
{
// Si non on le crée
+ dolibarr_install_syslog("we try to creat conf file '$conffile'");
$confexists=0;
$fp = @fopen($conffile, "w");
- if($fp)
+ if ($fp)
{
@fwrite($fp, ' '.$langs->trans("ConfFileDoesNotExists",'conf.php');
- print "
";
+ //print '
'.$langs->trans("ConfFileDoesNotExistsAndCouldNotBeCreated",$conffile);
+ print '
'.$langs->trans("ConfFileDoesNotExistsAndCouldNotBeCreated",'conf.php');
+ print "
";
print $langs->trans("YouMustCreateWithPermission",'htdocs/conf/conf.php');
print "
";
- print $langs->trans("CorrectProblemAndReloadPage");
+ print $langs->trans("CorrectProblemAndReloadPage",$_SERVER['PHP_SELF']);
$err++;
}
else
diff --git a/htdocs/install/inc.php b/htdocs/install/inc.php
index 9701454ca52..200197d026a 100644
--- a/htdocs/install/inc.php
+++ b/htdocs/install/inc.php
@@ -98,7 +98,7 @@ function pHeader($soutitre,$next,$action='set')
print '