Fix: Fichier lang non chargé

This commit is contained in:
Laurent Destailleur 2005-08-29 21:12:48 +00:00
parent c9faf58401
commit 7bc3f997d7

View File

@ -115,7 +115,7 @@ function sanitize_string($str)
*/ */
function dolibarr_syslog($message, $level=LOG_ERR) function dolibarr_syslog($message, $level=LOG_ERR)
{ {
global $conf,$user; global $conf,$user,$langs;
if ($conf->syslog->enabled) if ($conf->syslog->enabled)
{ {
@ -130,6 +130,7 @@ function dolibarr_syslog($message, $level=LOG_ERR)
fclose($file); fclose($file);
} }
else { else {
$langs->load("main");
print $langs->trans("ErrorFailedToOpenFile",SYSLOG_FILE); print $langs->trans("ErrorFailedToOpenFile",SYSLOG_FILE);
} }
} }