summaryrefslogtreecommitdiffstats
path: root/core/Command/Upgrade.php
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 /core/Command/Upgrade.php
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 'core/Command/Upgrade.php')
-rw-r--r--core/Command/Upgrade.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Command/Upgrade.php b/core/Command/Upgrade.php
index cadc1f8530c..1611b121f33 100644
--- a/core/Command/Upgrade.php
+++ b/core/Command/Upgrade.php
@@ -39,6 +39,7 @@ use OC\Installer;
use OC\Updater;
use OCP\IConfig;
use OCP\ILogger;
+use OCP\Util;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\ProgressBar;
use Symfony\Component\Console\Input\InputInterface;
@@ -87,7 +88,7 @@ class Upgrade extends Command {
*/
protected function execute(InputInterface $input, OutputInterface $output) {
- if(\OC::checkUpgrade(false)) {
+ if(Util::needUpgrade()) {
if (OutputInterface::VERBOSITY_NORMAL < $output->getVerbosity()) {
// Prepend each line with a little timestamp
$timestampFormatter = new TimestampFormatter($this->config, $output->getFormatter());