Fix: Fichier lang non chargé
This commit is contained in:
parent
c9faf58401
commit
7bc3f997d7
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user