aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/module_base.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/install/module_base.php')
-rw-r--r--phpBB/install/module_base.php17
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();