From 7bc3f997d70fabbe11f389f71594cec602f69811 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 29 Aug 2005 21:12:48 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Fichier=20lang=20non=20charg=E9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/lib/functions.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/lib/functions.inc.php b/htdocs/lib/functions.inc.php index 9fd6c5ee9a3..2b0807e8575 100644 --- a/htdocs/lib/functions.inc.php +++ b/htdocs/lib/functions.inc.php @@ -115,7 +115,7 @@ function sanitize_string($str) */ function dolibarr_syslog($message, $level=LOG_ERR) { - global $conf,$user; + global $conf,$user,$langs; if ($conf->syslog->enabled) { @@ -130,6 +130,7 @@ function dolibarr_syslog($message, $level=LOG_ERR) fclose($file); } else { + $langs->load("main"); print $langs->trans("ErrorFailedToOpenFile",SYSLOG_FILE); } }