1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/14434] Remove recursion to simplify is_migration method

PHPBB3-14434
This commit is contained in:
Matt Friedman
2016-01-27 11:46:04 -08:00
parent 47d8aeebde
commit 3bd8a2ba19
3 changed files with 17 additions and 26 deletions

View File

@@ -79,8 +79,7 @@ class schema_generator
{
foreach ($migrations as $key => $migration_class)
{
// Unset classes that do not exist or do not extend the
// abstract class phpbb\db\migration\migration
// Unset classes that are not a valid migration
if (\phpbb\db\migrator::is_migration($migration_class) === false)
{
unset($migrations[$key]);