diff --git a/lib/base.php b/lib/base.php index 3e60b37934acb328b5af464290c2c1a4fe4de3ba..1c9f25006dd1d95e14a7bc90a7e3343c85433100 100644 --- a/lib/base.php +++ b/lib/base.php @@ -660,7 +660,7 @@ class OC { if ($config->getSystemValue('installed', false) && $config->getSystemValue('log_rotate_size', false) && !\OCP\Util::needUpgrade()) { //don't try to do this before we are properly setup //use custom logfile path if defined, otherwise use default of owncloud.log in data directory - \OCP\BackgroundJob::registerJob('OC\Log\Rotate', $config->getSystemValue('logfile', $config->getSystemValue("datadirectory", OC::$SERVERROOT . '/data') . '/owncloud.log')); + \OCP\BackgroundJob::registerJob('OC\Log\Rotate', $config->getSystemValue('logfile', $config->getSystemValue('datadirectory', OC::$SERVERROOT . '/data') . '/owncloud.log')); } }