mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-31 03:29:23 +02:00
[ticket/14393] Fix db update progress bar
PHPBB3-14393
This commit is contained in:
parent
c44a01fd9d
commit
9fc01a42e6
@ -142,6 +142,7 @@ class update extends task_base
|
|||||||
$this->migrator->set_migrations($migrations);
|
$this->migrator->set_migrations($migrations);
|
||||||
$migration_count = count($this->migrator->get_migrations());
|
$migration_count = count($this->migrator->get_migrations());
|
||||||
$this->iohandler->set_task_count($migration_count, true);
|
$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);
|
$progress_count = $this->installer_config->get('database_update_count', 0);
|
||||||
|
|
||||||
while (!$this->migrator->finished())
|
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->iohandler->add_success_message('INLINE_UPDATE_SUCCESSFUL');
|
||||||
|
|
||||||
$this->config->delete('version_update_from');
|
$this->config->delete('version_update_from');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user