Skip to content
Snippets Groups Projects
Unverified Commit 8948f66d authored by noveens's avatar noveens Committed by Morris Jobke
Browse files

maintenance warning printed on STDERR rather than STDOUT


redundant check removed

Signed-off-by: default avatarMorris Jobke <hey@morrisjobke.de>
parent 528a903a
No related branches found
No related tags found
No related merge requests found
...@@ -37,6 +37,7 @@ use Symfony\Component\Console\Application as SymfonyApplication; ...@@ -37,6 +37,7 @@ use Symfony\Component\Console\Application as SymfonyApplication;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Output\ConsoleOutputInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\EventDispatcher\EventDispatcherInterface;
class Application { class Application {
...@@ -97,7 +98,8 @@ class Application { ...@@ -97,7 +98,8 @@ class Application {
throw new NeedsUpdateException(); throw new NeedsUpdateException();
} elseif ($this->config->getSystemValue('maintenance', false)) { } elseif ($this->config->getSystemValue('maintenance', false)) {
if ($input->getArgument('command') !== '_completion') { if ($input->getArgument('command') !== '_completion') {
$output->writeln("Nextcloud is in maintenance mode - no apps have been loaded"); $errOutput = $output->getErrorOutput();
$errOutput->writeln('<comment>ownCloud is in maintenance mode - no app have been loaded</comment>' . PHP_EOL);
} }
} else { } else {
OC_App::loadApps(); OC_App::loadApps();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment