aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/install/helper/iohandler
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-08-21 09:44:37 +0200
committerMarc Alexander <admin@m-a-styles.de>2016-08-21 09:44:37 +0200
commit76748183bb46d111d7cc36f683385ecae70721e7 (patch)
treeb8aade382cdf3718ecff6450089d8f2e9fdc3d9e /phpBB/phpbb/install/helper/iohandler
parent723d9d8e4c9f397eab7af77e6e6bd851354a9dcd (diff)
parenta37f10ae0951f16b115f4a175cc546a515cf7937 (diff)
downloadforums-76748183bb46d111d7cc36f683385ecae70721e7.tar
forums-76748183bb46d111d7cc36f683385ecae70721e7.tar.gz
forums-76748183bb46d111d7cc36f683385ecae70721e7.tar.bz2
forums-76748183bb46d111d7cc36f683385ecae70721e7.tar.xz
forums-76748183bb46d111d7cc36f683385ecae70721e7.zip
Merge pull request #4420 from Elsensee/ticket/14742-32x
[ticket/14742-32x] Further improvements to migrator
Diffstat (limited to 'phpBB/phpbb/install/helper/iohandler')
-rw-r--r--phpBB/phpbb/install/helper/iohandler/cli_iohandler.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/phpBB/phpbb/install/helper/iohandler/cli_iohandler.php b/phpBB/phpbb/install/helper/iohandler/cli_iohandler.php
index 2a41cb10ba..196cdcdaab 100644
--- a/phpBB/phpbb/install/helper/iohandler/cli_iohandler.php
+++ b/phpBB/phpbb/install/helper/iohandler/cli_iohandler.php
@@ -198,6 +198,16 @@ class cli_iohandler extends iohandler_base
if ($this->output->getVerbosity() === OutputInterface::VERBOSITY_NORMAL)
{
+ if ($this->progress_bar !== null)
+ {
+ // Symfony's ProgressBar is immutable regarding task_count, so delete the old and create a new one.
+ $this->progress_bar->clear();
+ }
+ else
+ {
+ $this->io->newLine(2);
+ }
+
$this->progress_bar = $this->io->createProgressBar($task_count);
$this->progress_bar->setFormat(
" %current:3s%/%max:-3s% %bar% %percent:3s%%\n" .
@@ -212,7 +222,6 @@ class cli_iohandler extends iohandler_base
}
$this->progress_bar->setMessage('');
- $this->io->newLine(2);
$this->progress_bar->start();
}
}