aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/extension/base.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/extension/base.php')
-rw-r--r--phpBB/phpbb/extension/base.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/phpbb/extension/base.php b/phpBB/phpbb/extension/base.php
index 5bb530bad4..4bf19b37ed 100644
--- a/phpBB/phpbb/extension/base.php
+++ b/phpBB/phpbb/extension/base.php
@@ -137,6 +137,14 @@ class base implements \phpbb\extension\extension_interface
$migrations = $this->extension_finder->get_classes_from_files($migrations);
+ foreach ($migrations as $key => $migration)
+ {
+ $reflector = new \ReflectionClass($migration);
+ if (!$reflector->isSubclassOf('\phpbb\db\migration\migration')) {
+ unset($migrations[$key]);
+ }
+ }
+
return $migrations;
}
}