From ef71cf1404d542ad49919d6fcf6bd8120f188943 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 25 Jun 2005 22:06:00 +0000 Subject: [PATCH] =?UTF-8?q?Qual:=20Am=E9lioration=20gestion=20erreur=20ins?= =?UTF-8?q?tall?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/install/etape2.php | 4 +++- htdocs/install/etape5.php | 10 ++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/htdocs/install/etape2.php b/htdocs/install/etape2.php index 68a0274ec9e..1adeefca344 100644 --- a/htdocs/install/etape2.php +++ b/htdocs/install/etape2.php @@ -219,7 +219,9 @@ if ($_POST["action"] == "set") } else { - if ($db->errno() == 'DB_ERROR_CANNOT_CREATE' || eregi('duplicate key name',$db->error())) + if ($db->errno() == 'DB_ERROR_KEY_NAME_ALREADY_EXISTS' || + $db->errno() == 'DB_ERROR_CANNOT_CREATE' || + eregi('duplicate key name',$db->error())) { //print "Déjà existante"; $key_exists = 1; diff --git a/htdocs/install/etape5.php b/htdocs/install/etape5.php index c7a0c216f35..2a194b56726 100644 --- a/htdocs/install/etape5.php +++ b/htdocs/install/etape5.php @@ -122,12 +122,18 @@ if ($_POST["action"] == "set") print "
"; +// Fin install print $langs->trans("SystemIsInstalled")."
"; -print $langs->trans("YouNeedToPersonalizeSetup")."
"; +print $langs->trans("WarningRemoveInstallDir")."
"; -print '
'; +print "
"; + +// Lien vers setup +print $langs->trans("YouNeedToPersonalizeSetup")."
"; +print '
'; print $langs->trans("GoToSetupArea"); print ''; + pFooter(1); ?>