diff options
| author | David King <imkingdavid@gmail.com> | 2013-03-04 15:22:29 -0500 |
|---|---|---|
| committer | David King <imkingdavid@gmail.com> | 2013-03-04 15:22:29 -0500 |
| commit | 1148f3fca51efb60e536f2fe0d51880610f0812b (patch) | |
| tree | 1645796b4357b5a96c37654eb38d8562c664b67d /phpBB/install/database_update.php | |
| parent | 1a8f72fd659b6c3cc3fd1c59446cd1663a89b110 (diff) | |
| parent | c1840c78c5ea2967dfc1912665ec19ebc25c22c6 (diff) | |
| download | forums-1148f3fca51efb60e536f2fe0d51880610f0812b.tar forums-1148f3fca51efb60e536f2fe0d51880610f0812b.tar.gz forums-1148f3fca51efb60e536f2fe0d51880610f0812b.tar.bz2 forums-1148f3fca51efb60e536f2fe0d51880610f0812b.tar.xz forums-1148f3fca51efb60e536f2fe0d51880610f0812b.zip | |
Merge remote-tracking branch 'EXreaction/ticket/11386-3' into develop
# By Nathaniel Guse
# Via Nathaniel Guse
* EXreaction/ticket/11386-3:
[ticket/11386] Fix missing ;
[ticket/11386] Send list of migrations instead of using load_migrations
Diffstat (limited to 'phpBB/install/database_update.php')
| -rw-r--r-- | phpBB/install/database_update.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php index 6c8a95a413..3382e57e76 100644 --- a/phpBB/install/database_update.php +++ b/phpBB/install/database_update.php @@ -210,7 +210,13 @@ if (!$db_tools->sql_table_exists($table_prefix . 'migrations')) } $migrator = $phpbb_container->get('migrator'); -$migrator->load_migrations($phpbb_root_path . 'includes/db/migration/data/'); +$extension_manager = $phpbb_container->get('ext.manager'); +$finder = $extension_manager->get_finder(); + +$migrations = $finder + ->core_path('includes/db/migration/data/') + ->get_classes(); +$migrator->set_migrations($migrations); // What is a safe limit of execution time? Half the max execution time should be safe. $safe_time_limit = (ini_get('max_execution_time') / 2); |
