mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/15339] Use manual method when adding modules
This will fix cases where the module is deleted in later versions and the migrator thus cannot retrieve the info. PHPBB3-15339
This commit is contained in:
@@ -125,7 +125,9 @@ class dev extends \phpbb\db\migration\container_aware_migration
|
||||
'ACP_GROUPS',
|
||||
array(
|
||||
'module_basename' => 'acp_groups',
|
||||
'modes' => array('position'),
|
||||
'module_langname' => 'ACP_GROUPS_POSITION',
|
||||
'module_mode' => 'position',
|
||||
'module_auth' => 'acl_a_group',
|
||||
),
|
||||
)),
|
||||
array('module.add', array(
|
||||
@@ -133,7 +135,9 @@ class dev extends \phpbb\db\migration\container_aware_migration
|
||||
'ACP_ATTACHMENTS',
|
||||
array(
|
||||
'module_basename' => 'acp_attachments',
|
||||
'modes' => array('manage'),
|
||||
'module_langname' => 'ACP_MANAGE_ATTACHMENTS',
|
||||
'module_mode' => 'manage',
|
||||
'module_auth' => 'acl_a_attach',
|
||||
),
|
||||
)),
|
||||
array('module.add', array(
|
||||
@@ -141,7 +145,19 @@ class dev extends \phpbb\db\migration\container_aware_migration
|
||||
'ACP_STYLE_MANAGEMENT',
|
||||
array(
|
||||
'module_basename' => 'acp_styles',
|
||||
'modes' => array('install', 'cache'),
|
||||
'module_langname' => 'ACP_STYLES_INSTALL',
|
||||
'module_mode' => 'install',
|
||||
'module_auth' => 'acl_a_styles',
|
||||
),
|
||||
)),
|
||||
array('module.add', array(
|
||||
'acp',
|
||||
'ACP_STYLE_MANAGEMENT',
|
||||
array(
|
||||
'module_basename' => 'acp_styles',
|
||||
'module_langname' => 'ACP_STYLES_CACHE',
|
||||
'module_mode' => 'cache',
|
||||
'module_auth' => 'acl_a_styles',
|
||||
),
|
||||
)),
|
||||
array('module.add', array(
|
||||
@@ -149,7 +165,8 @@ class dev extends \phpbb\db\migration\container_aware_migration
|
||||
'UCP_PROFILE',
|
||||
array(
|
||||
'module_basename' => 'ucp_profile',
|
||||
'modes' => array('autologin_keys'),
|
||||
'module_langname' => 'UCP_PROFILE_AUTOLOGIN_KEYS',
|
||||
'module_mode' => 'autologin_keys',
|
||||
),
|
||||
)),
|
||||
// Module will be renamed later
|
||||
|
Reference in New Issue
Block a user