summaryrefslogtreecommitdiffstats
path: root/lib/private/Log.php
diff options
context:
space:
mode:
authorThomas Pulzer <t.pulzer@kniel.de>2016-07-22 14:45:33 +0200
committerThomas Pulzer <t.pulzer@kniel.de>2016-07-22 14:45:33 +0200
commitb058639a8a120d57c8eeacb1aecc51c6b027c4c4 (patch)
tree7d68b074da76f64d2b03bfbcd16dee3491d7c983 /lib/private/Log.php
parent32f5073f9f72179f85a2957e8df5a05c4e2c08d6 (diff)
downloadnextcloud-server-b058639a8a120d57c8eeacb1aecc51c6b027c4c4.tar.gz
nextcloud-server-b058639a8a120d57c8eeacb1aecc51c6b027c4c4.zip
Changed code style and made use of '===' comparison.
Diffstat (limited to 'lib/private/Log.php')
-rw-r--r--lib/private/Log.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/Log.php b/lib/private/Log.php
index 2d06e62f54c..0a707f3d4ea 100644
--- a/lib/private/Log.php
+++ b/lib/private/Log.php
@@ -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;