aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/db/migrator.php16
1 files changed, 11 insertions, 5 deletions
diff --git a/phpBB/includes/db/migrator.php b/phpBB/includes/db/migrator.php
index 824bca5e70..855e640554 100644
--- a/phpBB/includes/db/migrator.php
+++ b/phpBB/includes/db/migrator.php
@@ -193,17 +193,23 @@ class phpbb_db_migrator
throw new phpbb_db_migration_exception('DIRECTORY INVALID', $path);
}
+ $migrations = array();
+
$finder = $this->extension_manager->get_finder();
- $migration_files = $finder
+ $files = $finder
->extension_directory("/")
->find_from_paths(array('/' => $path));
- foreach ($migration_files as $migration)
+ foreach ($files as $file)
{
- $migration_name = $migration['path'] . $migration['filename'];
+ $migrations[$file['path'] . $file['filename']] = '';
+ }
+ $migrations = $finder->get_classes_from_files($migrations);
- if (!in_array($migration_name, $this->migrations))
+ foreach ($migrations as $migration)
+ {
+ if (!in_array($migration, $this->migrations))
{
- $this->migrations[] = $migration_name;
+ $this->migrations[] = $migration;
}
}