diff options
| author | Nils Adermann <naderman@naderman.de> | 2015-05-31 17:22:21 +0200 |
|---|---|---|
| committer | Nils Adermann <naderman@naderman.de> | 2015-05-31 17:22:21 +0200 |
| commit | 6813735d82d5309327e63d8308988f81554d2299 (patch) | |
| tree | fffea6f2d83d41728a61cdf75c8ef452d79569c7 /phpBB/phpbb/db/migration/data/v310/dev.php | |
| parent | 4b46ac78a6ee1bd792c0650497bc09b55e7fffb1 (diff) | |
| parent | 8d443c3de7c508068e4d6143cc41a1172df466a0 (diff) | |
| download | forums-6813735d82d5309327e63d8308988f81554d2299.tar forums-6813735d82d5309327e63d8308988f81554d2299.tar.gz forums-6813735d82d5309327e63d8308988f81554d2299.tar.bz2 forums-6813735d82d5309327e63d8308988f81554d2299.tar.xz forums-6813735d82d5309327e63d8308988f81554d2299.zip | |
Merge pull request #3552 from MateBartus/ticket/13777
[ticket/13777] Move module management related functionailty into service
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() |
