diff options
| author | MateBartus <mate.bartus@gmail.com> | 2015-05-31 13:21:45 +0200 |
|---|---|---|
| committer | MateBartus <mate.bartus@gmail.com> | 2015-05-31 13:22:45 +0200 |
| commit | 77ee0e62ca1685e4577947cc60163367dfa97de6 (patch) | |
| tree | ad9ac0d6fc644cf1aa36f891c454523130b21f74 /phpBB/phpbb/db/migration/data/v310/dev.php | |
| parent | e877a752be55dfda5a72c7995708e4e132a1079d (diff) | |
| download | forums-77ee0e62ca1685e4577947cc60163367dfa97de6.tar forums-77ee0e62ca1685e4577947cc60163367dfa97de6.tar.gz forums-77ee0e62ca1685e4577947cc60163367dfa97de6.tar.bz2 forums-77ee0e62ca1685e4577947cc60163367dfa97de6.tar.xz forums-77ee0e62ca1685e4577947cc60163367dfa97de6.zip | |
[ticket/13777] Use module manager in phpBB core files
PHPBB3-13777
Diffstat (limited to 'phpBB/phpbb/db/migration/data/v310/dev.php')
| -rw-r--r-- | phpBB/phpbb/db/migration/data/v310/dev.php | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/phpBB/phpbb/db/migration/data/v310/dev.php b/phpBB/phpbb/db/migration/data/v310/dev.php index f037191c2a..250258eea7 100644 --- a/phpBB/phpbb/db/migration/data/v310/dev.php +++ b/phpBB/phpbb/db/migration/data/v310/dev.php @@ -13,7 +13,7 @@ namespace phpbb\db\migration\data\v310; -class dev extends \phpbb\db\migration\migration +class dev extends \phpbb\db\migration\container_aware_migration { public function effectively_installed() { @@ -204,18 +204,13 @@ class dev extends \phpbb\db\migration\migration $language_management_module_id = $this->db->sql_fetchfield('module_id'); $this->db->sql_freeresult($result); - if (!class_exists('acp_modules')) - { - include($this->phpbb_root_path . 'includes/acp/acp_modules.' . $this->php_ext); - } // acp_modules calls adm_back_link, which is undefined at this point if (!function_exists('adm_back_link')) { include($this->phpbb_root_path . 'includes/functions_acp.' . $this->php_ext); } - $module_manager = new \acp_modules(); - $module_manager->module_class = 'acp'; - $module_manager->move_module($language_module_id, $language_management_module_id); + $module_manager = $this->container->get('module.manager'); + $module_manager->move_module($language_module_id, $language_management_module_id, 'acp'); } public function update_ucp_pm_basename() |
