diff options
author | Máté Bartus <mate.bartus@gmail.com> | 2016-03-30 11:05:45 +0200 |
---|---|---|
committer | Máté Bartus <mate.bartus@gmail.com> | 2016-03-30 11:05:45 +0200 |
commit | 9fc01a42e678a934507dede60b9e1e806ccfd787 (patch) | |
tree | 2cd51f72942da2692a57fe736cc277486f10a49d | |
parent | c44a01fd9deba39b43bcaf6979483a5b82bf364e (diff) | |
download | forums-9fc01a42e678a934507dede60b9e1e806ccfd787.tar forums-9fc01a42e678a934507dede60b9e1e806ccfd787.tar.gz forums-9fc01a42e678a934507dede60b9e1e806ccfd787.tar.bz2 forums-9fc01a42e678a934507dede60b9e1e806ccfd787.tar.xz forums-9fc01a42e678a934507dede60b9e1e806ccfd787.zip |
[ticket/14393] Fix db update progress bar
PHPBB3-14393
-rw-r--r-- | phpBB/phpbb/install/module/update_database/task/update.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/phpBB/phpbb/install/module/update_database/task/update.php b/phpBB/phpbb/install/module/update_database/task/update.php index d8807951d1..9fed2317e9 100644 --- a/phpBB/phpbb/install/module/update_database/task/update.php +++ b/phpBB/phpbb/install/module/update_database/task/update.php @@ -142,6 +142,7 @@ class update extends task_base $this->migrator->set_migrations($migrations); $migration_count = count($this->migrator->get_migrations()); $this->iohandler->set_task_count($migration_count, true); + $this->installer_config->set_task_progress_count($migration_count); $progress_count = $this->installer_config->get('database_update_count', 0); while (!$this->migrator->finished()) @@ -183,8 +184,6 @@ class update extends task_base ); } - $this->iohandler->set_progress('INLINE_UPDATE_SUCCESSFUL', $migration_count); - $this->iohandler->add_success_message('INLINE_UPDATE_SUCCESSFUL'); $this->config->delete('version_update_from'); |