mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Changed code style and made use of '===' comparison.
This commit is contained in:
parent
32f5073f9f
commit
b058639a8a
1 changed files with 4 additions and 1 deletions
|
|
@ -105,7 +105,10 @@ class Log implements ILogger {
|
|||
if($logger === null) {
|
||||
// TODO: Drop backwards compatibility for config in the future
|
||||
$logType = $this->config->getValue('log_type', 'file');
|
||||
$this->logger = 'OC\\Log\\'.ucfirst($logType=='owncloud' ? 'file' : $logType);
|
||||
if($logType==='owncloud') {
|
||||
$logType = 'file';
|
||||
}
|
||||
$this->logger = 'OC\\Log\\'.ucfirst($logType);
|
||||
call_user_func(array($this->logger, 'init'));
|
||||
} else {
|
||||
$this->logger = $logger;
|
||||
|
|
|
|||
Loading…
Reference in a new issue