summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-03-31 12:41:57 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2016-04-04 12:34:18 +0200
commit15339efd60ebcb4b140fc0e27f66ed9541f9d77f (patch)
tree1d0398ca65d5008e96e4c9378838ce374654e438 /core
parent1bf4c75e8bfd32160ee7316c492ddc436f673f37 (diff)
downloadnextcloud-server-15339efd60ebcb4b140fc0e27f66ed9541f9d77f.tar.gz
nextcloud-server-15339efd60ebcb4b140fc0e27f66ed9541f9d77f.zip
Limit the message to the console to the first 30 characters in order to not break the progress bar
Diffstat (limited to 'core')
-rw-r--r--core/command/upgrade.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/command/upgrade.php b/core/command/upgrade.php
index fbabf67a16a..c2de699d862 100644
--- a/core/command/upgrade.php
+++ b/core/command/upgrade.php
@@ -146,7 +146,11 @@ class Upgrade extends Command {
$output->writeln('');
$progress->start($event[1]);
}
- $progress->setMessage($event->getSubject());
+ $message = $event->getSubject();
+ if (strlen($message) > 30) {
+ $message = substr($message, 0, 27) . '...';
+ }
+ $progress->setMessage($message);
$progress->setProgress($event[0]);
$progress->display();
if ($event[0] === $event[1]) {