aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/install/module/update_database/task/update.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/install/module/update_database/task/update.php')
-rw-r--r--phpBB/phpbb/install/module/update_database/task/update.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/phpBB/phpbb/install/module/update_database/task/update.php b/phpBB/phpbb/install/module/update_database/task/update.php
index eb9bdc8138..4b2baf2c23 100644
--- a/phpBB/phpbb/install/module/update_database/task/update.php
+++ b/phpBB/phpbb/install/module/update_database/task/update.php
@@ -139,17 +139,8 @@ class update extends task_base
->extension_directory('/migrations')
->get_classes();
- // Unset classes that are not a valid migration
- foreach ($migrations as $key => $migration_class)
- {
- if (\phpbb\db\migrator::is_migration($migration_class) === false)
- {
- unset($migrations[$key]);
- }
- }
-
$this->migrator->set_migrations($migrations);
- $migration_count = count($migrations);
+ $migration_count = count($this->migrator->get_migrations());
$this->iohandler->set_task_count($migration_count, true);
$progress_count = $this->installer_config->get('database_update_count', 0);