Fix: loghandler loaded twice.
This commit is contained in:
parent
abd8aea06b
commit
a8ccc0ab0b
@ -466,7 +466,7 @@ class Conf
|
||||
throw new Exception('Log handler does not extend LogHandlerInterface');
|
||||
}
|
||||
|
||||
$this->loghandlers[]=$loghandlerinstance;
|
||||
if (empty($conf->loghandlers[$handler])) $this->loghandlers[$handler]=$loghandlerinstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -228,7 +228,7 @@ foreach ($handlers as $handler)
|
||||
throw new Exception('Log handler does not extend LogHandlerInterface');
|
||||
}
|
||||
|
||||
$conf->loghandlers[]=$loghandlerinstance;
|
||||
if (empty($conf->loghandlers[$handler])) $conf->loghandlers[$handler]=$loghandlerinstance;
|
||||
}
|
||||
|
||||
// Removed magic_quotes
|
||||
@ -331,7 +331,7 @@ function conf($dolibarr_main_document_root)
|
||||
throw new Exception('Log handler does not extend LogHandlerInterface');
|
||||
}
|
||||
|
||||
$conf->loghandlers[]=$loghandlerinstance;
|
||||
if (empty($conf->loghandlers[$handler])) $conf->loghandlers[$handler]=$loghandlerinstance;
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user