From d8f4ae3510e80f5d3c71187659b4638442a2cfff Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 19 Feb 2008 23:22:04 +0000 Subject: [PATCH] Fix: error message is complete --- htdocs/adherents/adherent.class.php | 1 + htdocs/langs/en_US/errors.lang | 3 ++- htdocs/langs/fr_FR/errors.lang | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/adherents/adherent.class.php b/htdocs/adherents/adherent.class.php index bb0314aa5a2..9120b1c0b45 100644 --- a/htdocs/adherents/adherent.class.php +++ b/htdocs/adherents/adherent.class.php @@ -1531,6 +1531,7 @@ class Adherent extends CommonObject if (! function_exists("curl_init")) { + $langs->load("errors"); $this->error=$langs->trans("ErrorFunctionNotAvailableInPHP","curl_init"); return -1; } diff --git a/htdocs/langs/en_US/errors.lang b/htdocs/langs/en_US/errors.lang index 8e6e6485834..db93329a5f4 100644 --- a/htdocs/langs/en_US/errors.lang +++ b/htdocs/langs/en_US/errors.lang @@ -21,4 +21,5 @@ ErrorNoMailDefinedForThisUser=No mail defined for this user ErrorFeatureNeedJavascript=This feature need javascript to be activated to work. Change this in setup - display. ErrorTopMenuMustHaveAParentWithId0=A menu of type 'Top' can't have a parent menu. Put 0 in parent menu or choose a menu of type 'Left'. ErrorLeftMenuMustHaveAParentId=A menu of type 'Left' must have a parent id. -ErrorGenbarCodeNotfound=File not found (Bad path, wrong permissions or access denied by openbasedir parameter) +ErrorGenbarCodeNotfound=File not found (Bad path, wrong permissions or access denied by openbasedir parameter) +ErrorFunctionNotAvailableInPHP=Function %s is required for this feature but is not available in this version/setup of PHP. diff --git a/htdocs/langs/fr_FR/errors.lang b/htdocs/langs/fr_FR/errors.lang index 8c7d95f5f7a..249b3989728 100644 --- a/htdocs/langs/fr_FR/errors.lang +++ b/htdocs/langs/fr_FR/errors.lang @@ -22,3 +22,4 @@ ErrorFeatureNeedJavascript=Cette fonctionnalit ErrorTopMenuMustHaveAParentWithId0=Un menu de type 'Top' ne peut avoir de menu père. Mettre 0 dans l'id père ou choisir un menu de type 'Left'. ErrorLeftMenuMustHaveAParentId=Un menu de type 'Left' doit avoir un id de père. ErrorGenbarCodeNotfound=Fichier introuvable (Mauvais chemin, permissions incorrectes ou accès interdit par le paramètre openbasedir) +ErrorFunctionNotAvailableInPHP=La fonction %s est requise pour cette fonctionnalité mais n'est pas disponible dans cette version/installation de PHP. \ No newline at end of file