aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/extension
diff options
context:
space:
mode:
authorMatt Friedman <maf675@gmail.com>2016-01-27 10:50:22 -0800
committerMatt Friedman <maf675@gmail.com>2016-01-27 10:50:22 -0800
commit47d8aeebde6f763ec7247daf0df16dd2388b25b6 (patch)
tree3fa4bcd6bd3c0a3337639755485f1967af122d83 /phpBB/phpbb/extension
parent7d2a58e27100e5c776b44223e2cc6837c293db02 (diff)
downloadforums-47d8aeebde6f763ec7247daf0df16dd2388b25b6.tar
forums-47d8aeebde6f763ec7247daf0df16dd2388b25b6.tar.gz
forums-47d8aeebde6f763ec7247daf0df16dd2388b25b6.tar.bz2
forums-47d8aeebde6f763ec7247daf0df16dd2388b25b6.tar.xz
forums-47d8aeebde6f763ec7247daf0df16dd2388b25b6.zip
[ticket/14434] Extract migration check to a reusable method
PHPBB3-14434
Diffstat (limited to 'phpBB/phpbb/extension')
-rw-r--r--phpBB/phpbb/extension/base.php14
1 files changed, 1 insertions, 13 deletions
diff --git a/phpBB/phpbb/extension/base.php b/phpBB/phpbb/extension/base.php
index b647242b98..b05c1af8d4 100644
--- a/phpBB/phpbb/extension/base.php
+++ b/phpBB/phpbb/extension/base.php
@@ -139,19 +139,7 @@ class base implements \phpbb\extension\extension_interface
// Unset classes that do not exist or do not extend the
// abstract class phpbb\db\migration\migration
- foreach ($migrations as $key => $migration)
- {
- if (class_exists($migration))
- {
- $reflector = new \ReflectionClass($migration);
- if ($reflector->implementsInterface('\phpbb\db\migration\migration_interface') && $reflector->isInstantiable())
- {
- continue;
- }
- }
-
- unset($migrations[$key]);
- }
+ \phpbb\db\migrator::is_migration($migrations);
return $migrations;
}