diff options
Diffstat (limited to 'core/ajax/update.php')
-rw-r--r-- | core/ajax/update.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php index 54038a479fb..7da9b71b751 100644 --- a/core/ajax/update.php +++ b/core/ajax/update.php @@ -43,9 +43,10 @@ if (OC::checkUpgrade(false)) { \OC_User::setIncognitoMode(true); $logger = \OC::$server->getLogger(); + $config = \OC::$server->getConfig(); $updater = new \OC\Updater( \OC::$server->getHTTPHelper(), - \OC::$server->getConfig(), + $config, $logger ); $incompatibleApps = []; @@ -96,10 +97,10 @@ if (OC::checkUpgrade(false)) { $updater->listen('\OC\Updater', 'thirdPartyAppDisabled', function ($app) use (&$disabledThirdPartyApps) { $disabledThirdPartyApps[]= $app; }); - $updater->listen('\OC\Updater', 'failure', function ($message) use ($eventSource) { + $updater->listen('\OC\Updater', 'failure', function ($message) use ($eventSource, $config) { $eventSource->send('failure', $message); $eventSource->close(); - OC_Config::setValue('maintenance', false); + $config->setSystemValue('maintenance', false); }); $updater->listen('\OC\Updater', 'setDebugLogLevel', function ($logLevel, $logLevelName) use($eventSource, $l) { $eventSource->send('success', (string)$l->t('Set log level to debug - current level: "%s"', [ $logLevelName ])); |