diff options
| author | MateBartus <mate.bartus@gmail.com> | 2015-06-02 21:56:27 +0200 |
|---|---|---|
| committer | Mate Bartus <mate.bartus@gmail.com> | 2015-07-08 01:27:59 +0200 |
| commit | 37b0134aa437e3e874464d3cf0d29c34a8da184a (patch) | |
| tree | d088a06b34ef3cea896f0366a7766124415c360b /phpBB/install/module_base.php | |
| parent | 4df89d88486faa0c70473271c6ba757d5faab851 (diff) | |
| download | forums-37b0134aa437e3e874464d3cf0d29c34a8da184a.tar forums-37b0134aa437e3e874464d3cf0d29c34a8da184a.tar.gz forums-37b0134aa437e3e874464d3cf0d29c34a8da184a.tar.bz2 forums-37b0134aa437e3e874464d3cf0d29c34a8da184a.tar.xz forums-37b0134aa437e3e874464d3cf0d29c34a8da184a.zip | |
[ticket/13740] Add backend support for install progress tracking
PHPBB3-13740
Diffstat (limited to 'phpBB/install/module_base.php')
| -rw-r--r-- | phpBB/install/module_base.php | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/phpBB/install/module_base.php b/phpBB/install/module_base.php index a34a103aca..3629903747 100644 --- a/phpBB/install/module_base.php +++ b/phpBB/install/module_base.php @@ -110,8 +110,15 @@ abstract class module_base implements module_interface /** @var \phpbb\install\task_interface $task */ $task = $this->container->get($this->task_collection[$task_index]); + // Send progress information + $this->iohandler->set_progress( + $task->get_task_lang_name(), + $this->install_config->get_current_task_progress() + ); + // Iterate to the next task $task_index++; + $this->install_config->increment_current_task_progress(); // Check if we can run the task if (!$task->is_essential() && !$task->check_requirements()) @@ -121,11 +128,11 @@ abstract class module_base implements module_interface $task->run(); - // Increment progress - if ($this->get_task_count() !== 0) - { - //$this->iohandler->increment_progress(); - } + // Send progress info + $this->iohandler->set_progress( + $task->get_task_lang_name(), + $this->install_config->get_current_task_progress() + ); $this->iohandler->send_response(); |
