summaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-11-30 16:00:19 +0100
committerMorris Jobke <hey@morrisjobke.de>2017-11-30 16:04:07 +0100
commitf22e02cd79e27b1d994fd84a98eb5a8c60563e72 (patch)
treeed473f4d77fcbb8b1be958c1e29f5fee72336ecb /core/ajax
parent288f50bdc72011ce4e045322698793a843e09b0a (diff)
downloadnextcloud-server-f22e02cd79e27b1d994fd84a98eb5a8c60563e72.tar.gz
nextcloud-server-f22e02cd79e27b1d994fd84a98eb5a8c60563e72.zip
Refactor method to check if update is needed
There was only one call, that actually needed the parameter to be set to true. So this change moved the print of the page to that location and replaces all other occurences with a direct call to the underlying OCP API. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core/ajax')
-rw-r--r--core/ajax/update.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php
index 2a29d1e536c..839f5f3679f 100644
--- a/core/ajax/update.php
+++ b/core/ajax/update.php
@@ -98,7 +98,7 @@ class FeedBackHandler {
}
}
-if (OC::checkUpgrade(false)) {
+if (\OCP\Util::needUpgrade()) {
$config = \OC::$server->getSystemConfig();
if ($config->getValue('upgrade.disable-web', false)) {