diff --git a/lib/private/Server.php b/lib/private/Server.php index 371f9a7da4dfe..19df5f9ae269f 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -643,11 +643,11 @@ public function __construct($webRoot, \OC\Config $config) { ArrayCache::class, ArrayCache::class ); - /** @var \OCP\IConfig $config */ - $config = $c->get(\OCP\IConfig::class); + /** @var SystemConfig $config */ + $config = $c->get(SystemConfig::class); - if ($config->getSystemValueBool('installed', false) && !(defined('PHPUNIT_RUN') && PHPUNIT_RUN)) { - if (!$config->getSystemValueBool('log_query')) { + if ($config->getValue('installed', false) && !(defined('PHPUNIT_RUN') && PHPUNIT_RUN)) { + if (!$config->getValue('log_query')) { try { $v = \OC_App::getAppVersions(); } catch (\Doctrine\DBAL\Exception $e) { @@ -671,10 +671,10 @@ public function __construct($webRoot, \OC\Config $config) { return new \OC\Memcache\Factory($prefix, $c->get(LoggerInterface::class), $profiler, - $config->getSystemValue('memcache.local', null), - $config->getSystemValue('memcache.distributed', null), - $config->getSystemValue('memcache.locking', null), - $config->getSystemValueString('redis_log_file') + $config->getValue('memcache.local', null), + $config->getValue('memcache.distributed', null), + $config->getValue('memcache.locking', null), + $config->getValue('redis_log_file') ); } return $arrayCacheFactory;