summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2018-01-22 22:50:05 +0100
committerGitHub <noreply@github.com>2018-01-22 22:50:05 +0100
commitc7d9e5fd6305354ba46563a77eaa53642e2a838d (patch)
tree5ac016c84e6740f949efc5e65107b300d19af44b /apps/dav
parent23768d5fea197e9d74417244fd4bf870427f4b6c (diff)
parent0f35ef3727ee6ccec6f80cbc636b45aad00db903 (diff)
downloadnextcloud-server-c7d9e5fd6305354ba46563a77eaa53642e2a838d.tar.gz
nextcloud-server-c7d9e5fd6305354ba46563a77eaa53642e2a838d.zip
Merge pull request #7354 from nextcloud/refacor-update-page-print
Refactor method to check if update is needed
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/Connector/Sabre/MaintenancePlugin.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/Sabre/MaintenancePlugin.php b/apps/dav/lib/Connector/Sabre/MaintenancePlugin.php
index 21bffcdb299..36110c81db9 100644
--- a/apps/dav/lib/Connector/Sabre/MaintenancePlugin.php
+++ b/apps/dav/lib/Connector/Sabre/MaintenancePlugin.php
@@ -27,6 +27,7 @@
namespace OCA\DAV\Connector\Sabre;
use OCP\IConfig;
+use OCP\Util;
use Sabre\DAV\Exception\ServiceUnavailable;
use Sabre\DAV\ServerPlugin;
@@ -80,7 +81,7 @@ class MaintenancePlugin extends ServerPlugin {
if ($this->config->getSystemValue('maintenance', false)) {
throw new ServiceUnavailable('System in maintenance mode.');
}
- if (\OC::checkUpgrade(false)) {
+ if (Util::needUpgrade()) {
throw new ServiceUnavailable('Upgrade needed');
}