mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-29 11:10:18 +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:
@@ -69,7 +69,9 @@ class auth_provider_oauth extends \phpbb\db\migration\migration
|
||||
'UCP_PROFILE',
|
||||
array(
|
||||
'module_basename' => 'ucp_auth_link',
|
||||
'modes' => array('auth_link'),
|
||||
'module_langname' => 'UCP_AUTH_LINK_MANAGE',
|
||||
'module_mode' => 'auth_link',
|
||||
'module_auth' => 'authmethod_oauth',
|
||||
),
|
||||
)),
|
||||
);
|
||||
|
@@ -23,7 +23,9 @@ class contact_admin_acp_module extends \phpbb\db\migration\migration
|
||||
'ACP_BOARD_CONFIGURATION',
|
||||
array(
|
||||
'module_basename' => 'acp_contact',
|
||||
'modes' => array('contact'),
|
||||
'module_langname' => 'ACP_CONTACT_SETTINGS',
|
||||
'module_mode' => 'contact',
|
||||
'module_auth' => 'acl_a_board',
|
||||
),
|
||||
)),
|
||||
);
|
||||
|
@@ -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
|
||||
|
@@ -66,7 +66,9 @@ class extensions extends \phpbb\db\migration\migration
|
||||
'ACP_EXTENSION_MANAGEMENT',
|
||||
array(
|
||||
'module_basename' => 'acp_extensions',
|
||||
'modes' => array('main'),
|
||||
'module_langname' => 'ACP_EXTENSIONS',
|
||||
'module_mode' => 'main',
|
||||
'module_auth' => 'acl_a_extensions',
|
||||
),
|
||||
)),
|
||||
array('permission.add', array('a_extensions', true, 'a_styles')),
|
||||
|
@@ -85,7 +85,9 @@ class notifications extends \phpbb\db\migration\migration
|
||||
'UCP_MAIN',
|
||||
array(
|
||||
'module_basename' => 'ucp_notifications',
|
||||
'modes' => array('notification_list'),
|
||||
'module_langname' => 'UCP_NOTIFICATION_LIST',
|
||||
'module_mode' => 'notification_list',
|
||||
'module_auth' => 'cfg_allow_board_notifications',
|
||||
),
|
||||
)),
|
||||
array('module.add', array(
|
||||
@@ -93,7 +95,8 @@ class notifications extends \phpbb\db\migration\migration
|
||||
'UCP_PREFS',
|
||||
array(
|
||||
'module_basename' => 'ucp_notifications',
|
||||
'modes' => array('notification_options'),
|
||||
'module_langname' => 'UCP_NOTIFICATION_OPTIONS',
|
||||
'module_mode' => 'notification_options',
|
||||
),
|
||||
)),
|
||||
array('config.add', array('load_notifications', 1)),
|
||||
|
@@ -45,7 +45,9 @@ class softdelete_mcp_modules extends \phpbb\db\migration\migration
|
||||
'MCP_QUEUE',
|
||||
array(
|
||||
'module_basename' => 'mcp_queue',
|
||||
'modes' => array('deleted_topics'),
|
||||
'module_langname' => 'MCP_QUEUE_DELETED_TOPICS',
|
||||
'module_mode' => 'deleted_topics',
|
||||
'module_auth' => 'aclf_m_approve',
|
||||
),
|
||||
)),
|
||||
array('module.add', array(
|
||||
@@ -53,7 +55,9 @@ class softdelete_mcp_modules extends \phpbb\db\migration\migration
|
||||
'MCP_QUEUE',
|
||||
array(
|
||||
'module_basename' => 'mcp_queue',
|
||||
'modes' => array('deleted_posts'),
|
||||
'module_langname' => 'MCP_QUEUE_DELETED_POSTS',
|
||||
'module_mode' => 'deleted_posts',
|
||||
'module_auth' => 'aclf_m_approve',
|
||||
),
|
||||
)),
|
||||
);
|
||||
|
Reference in New Issue
Block a user