diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2018-01-22 22:50:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-22 22:50:05 +0100 |
commit | c7d9e5fd6305354ba46563a77eaa53642e2a838d (patch) | |
tree | 5ac016c84e6740f949efc5e65107b300d19af44b /core/Command/Upgrade.php | |
parent | 23768d5fea197e9d74417244fd4bf870427f4b6c (diff) | |
parent | 0f35ef3727ee6ccec6f80cbc636b45aad00db903 (diff) | |
download | nextcloud-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.php | 3 |
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()); |