diff --git a/htdocs/install/etape4.php b/htdocs/install/etape4.php
index 8c0cfee157b..e396acd1d0f 100644
--- a/htdocs/install/etape4.php
+++ b/htdocs/install/etape4.php
@@ -73,7 +73,7 @@ if ($db->ok == 1)
{
print '
';
print '
'.$langs->trans("PasswordsMismatch").'
';
- $err=1;
+ $err=0; // We show button
}
if (isset($_GET["error"]) && $_GET["error"] == 2)
@@ -82,14 +82,14 @@ if ($db->ok == 1)
print '';
print $langs->trans("PleaseTypePassword");
print '
';
- $err=1;
+ $err=0; // We show button
}
if (isset($_GET["error"]) && $_GET["error"] == 3)
{
print '
';
print ''.$langs->trans("PleaseTypeALogin").'
';
- $err=1;
+ $err=0; // We show button
}
}
diff --git a/htdocs/install/fileconf.php b/htdocs/install/fileconf.php
index 2ef6b7211d3..fcc599204f1 100644
--- a/htdocs/install/fileconf.php
+++ b/htdocs/install/fileconf.php
@@ -1,7 +1,7 @@
+/* Copyright (C) 2004 Rodolphe Quiedeville
* Copyright (C) 2004 Eric Seigne
- * Copyright (C) 2004-2008 Laurent Destailleur
+ * Copyright (C) 2004-2009 Laurent Destailleur
* Copyright (C) 2004 Benoit Mortier
* Copyright (C) 2004 Sebastien DiCintio
*
@@ -56,9 +56,9 @@ dolibarr_install_syslog("Fileconf: Entering fileconf.php page");
pHeader($langs->trans("ConfigurationFile"),"etape0");
-if ($force_install_message_doliwamp)
+if (! empty($force_install_message_doliwamp))
{
- print $langs->trans("KeepDefaultValues").'
';
+ print $langs->trans("KeepDefaultValues").'
';
}
?>
@@ -118,7 +118,7 @@ print $langs->trans("Examples").":
";
trans("DocumentsDirectory"); ?>
|
-trans("Examples").":
";
trans("URLRoot"); ?>
| = '.versiontostring($versionbasemin).')';
@@ -339,7 +339,7 @@ while (($file = readdir($handle))!==false)
trans("CreateUser"); ?>
|
-> |
+> |
@@ -379,6 +379,7 @@ while (($file = readdir($handle))!==false)
close();
+pFooter($err,$setuplang);
?>
diff --git a/htdocs/install/inc.php b/htdocs/install/inc.php
index 60fbb848162..3e06d32f355 100644
--- a/htdocs/install/inc.php
+++ b/htdocs/install/inc.php
@@ -107,6 +107,7 @@ if (! defined('DONOTLOADCONF') && file_exists($conffile))
$includeconferror='ErrorBadFormatForConfFile';
}
}
+$conf->global->MAIN_LOGTOHTML=1;
// Define prefix
@@ -294,7 +295,7 @@ function pFooter($nonext=0,$setuplang='')
print ''."\n";
// If there is some logs in buffer to show
- if (sizeof($conf->logbuffer))
+ if (isset($conf->logbuffer) && sizeof($conf->logbuffer))
{
print "\n";
print "