1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/17010] Add settings and some more notification code

PHPBB3-17010
This commit is contained in:
Marc Alexander
2022-08-20 22:56:34 +02:00
parent 3feeb237ca
commit 769f5bc397
4 changed files with 94 additions and 0 deletions

View File

@@ -52,4 +52,31 @@ class add_notification_push_table extends migration
'drop_tables' => [$this->table_prefix . 'notification_push'],
];
}
public function update_data(): array
{
return [
['config.add', ['webpush_vapid_public', '']],
['config.add', ['webpush_vapid_private', '']],
['module.add', [
'acp',
'ACP_BOARD_CONFIGURATION',
[
'module_basename' => 'acp_board',
'module_langname' => 'ACP_WEBPUSH_SETTINGS',
'module_mode' => 'webpush',
'module_auth' => 'acl_a_board',
'after' => ['settings', 'ACP_JABBER_SETTINGS'],
],
]],
];
}
public function revert_data(): array
{
return [
['config.remove', ['webpush_vapid_public']],
['config.remove', ['webpush_vapid_private']],
];
}
}