From 8020bd953aee5b9fa447f3b399b666136240ae4f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 18 Oct 2006 12:59:16 +0000 Subject: [PATCH] Message erreur plus complet --- htdocs/install/etape1.php | 2 +- htdocs/langs/fr_FR/install.lang | 2 +- htdocs/lib/databases/mysqli.lib.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/install/etape1.php b/htdocs/install/etape1.php index 5028452f427..b4ba5179b8a 100644 --- a/htdocs/install/etape1.php +++ b/htdocs/install/etape1.php @@ -536,7 +536,7 @@ if ($_POST["action"] == "set") print $langs->trans("ServerConnection")." : "; print $dolibarr_main_db_host; print ''; - print $langs->trans("Error"); + print ''.$db->error.''; print ""; // Affiche aide diagnostique diff --git a/htdocs/langs/fr_FR/install.lang b/htdocs/langs/fr_FR/install.lang index 2344b427a94..0748ed119e1 100644 --- a/htdocs/langs/fr_FR/install.lang +++ b/htdocs/langs/fr_FR/install.lang @@ -69,7 +69,7 @@ Examples=Exemples WithNoSlashAtTheEnd=Sans le slash "/" à la fin DirectoryRecommendation=Il est recommandé de mettre ce répertoire en dehors du répertoire des pages web. LoginAlreadyExists=Existe déjà -DolibarrAdminLogin=Login de l'administrateur Dolibarr +DolibarrAdminLogin=Login de l'utilisateur administrateur de Dolibarr FailedToCreateAdminLogin=Echec de la création du compte administrateur Dolibarr. AdminLoginAlreadyExists=Compte administrateur Dolibarr '%s' déjà existant. WarningRemoveInstallDir=Attention, pour des raisons de sécurité, une fois l'installation terminé, il est nécessaire de supprimer le répertoire install. diff --git a/htdocs/lib/databases/mysqli.lib.php b/htdocs/lib/databases/mysqli.lib.php index 9b475ede092..f5da9e7fc6f 100644 --- a/htdocs/lib/databases/mysqli.lib.php +++ b/htdocs/lib/databases/mysqli.lib.php @@ -108,8 +108,8 @@ class DoliDb { $this->connected = 0; $this->ok = 0; - $this->error="Mysql PHP functions are not available in this version of PHP"; - dolibarr_syslog("DoliDB::DoliDB : Mysql PHP functions are not available in this version of PHP"); + $this->error="Mysqli PHP functions are not available in this version of PHP. Try to use another driver."; + dolibarr_syslog("DoliDB::DoliDB : Mysql PHP functions are not available in this version of PHP. Try to use another driver."); return $this->ok; }