aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/install/module/install_data/task
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/install/module/install_data/task')
-rw-r--r--phpBB/phpbb/install/module/install_data/task/add_bots.php2
-rw-r--r--phpBB/phpbb/install/module/install_data/task/add_modules.php10
2 files changed, 6 insertions, 6 deletions
diff --git a/phpBB/phpbb/install/module/install_data/task/add_bots.php b/phpBB/phpbb/install/module/install_data/task/add_bots.php
index b22c8257e4..d45a6839a0 100644
--- a/phpBB/phpbb/install/module/install_data/task/add_bots.php
+++ b/phpBB/phpbb/install/module/install_data/task/add_bots.php
@@ -229,7 +229,7 @@ class add_bots extends \phpbb\install\task_base
$i++;
- // Run until there are available resources
+ // Stop execution if resource limit is reached
if ($this->install_config->get_time_remaining() <= 0 || $this->install_config->get_memory_remaining() <= 0)
{
break;
diff --git a/phpBB/phpbb/install/module/install_data/task/add_modules.php b/phpBB/phpbb/install/module/install_data/task/add_modules.php
index 2f3a25a9c2..d21a5be823 100644
--- a/phpBB/phpbb/install/module/install_data/task/add_modules.php
+++ b/phpBB/phpbb/install/module/install_data/task/add_modules.php
@@ -243,7 +243,7 @@ class add_modules extends \phpbb\install\task_base
$k++;
- // Run until there are available resources
+ // Stop execution if resource limit is reached
if ($this->config->get_time_remaining() <= 0 || $this->config->get_memory_remaining() <= 0)
{
$timed_out = true;
@@ -300,7 +300,7 @@ class add_modules extends \phpbb\install\task_base
$k++;
- // Run until there are available resources
+ // Stop execution if resource limit is reached
if ($this->config->get_time_remaining() <= 0 || $this->config->get_memory_remaining() <= 0)
{
$timed_out = true;
@@ -310,7 +310,7 @@ class add_modules extends \phpbb\install\task_base
$this->config->set('module_info_index', $k);
- // Run until there are available resources
+ // Stop execution if resource limit is reached
if ($timed_out)
{
throw new resource_limit_reached_exception();
@@ -322,7 +322,7 @@ class add_modules extends \phpbb\install\task_base
$this->order_modules($module_class);
$this->config->set('modules_ordered', true);
- // Run until there are available resources
+ // Stop execution if resource limit is reached
if ($this->config->get_time_remaining() <= 0 || $this->config->get_memory_remaining() <= 0)
{
throw new resource_limit_reached_exception();
@@ -348,7 +348,7 @@ class add_modules extends \phpbb\install\task_base
$this->config->set('modules_ordered', false);
$this->config->set('module_categories_array', array());
- // Run until there are available resources
+ // Stop execution if resource limit is reached
if ($this->config->get_time_remaining() <= 0 || $this->config->get_memory_remaining() <= 0)
{
break;