Skip to content

Commit 4fe1a0d

Browse files
committed
Copy config values to phpBB 4.0 ones.
1 parent 88aece3 commit 4fe1a0d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

migrations/handle_subscriptions.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@ public function revert_data(): array
2222
($this->container->has('notification.method.webpush')),
2323
['custom', [[$this, 'copy_subscription_tables']]],
2424
]],
25+
['if', [
26+
(isset($this->config['webpush_enable'])),
27+
['config.update', ['webpush_enable', $this->config['wpn_webpush_enable']]],
28+
]],
29+
['if', [
30+
(isset($this->config['webpush_vapid_public'])),
31+
['config.update', ['webpush_vapid_public', $this->config['wpn_webpush_vapid_public']]],
32+
]],
33+
['if', [
34+
(isset($this->config['webpush_vapid_private'])),
35+
['config.update', ['webpush_vapid_private', $this->config['wpn_webpush_vapid_private']]],
36+
]],
2537
];
2638
}
2739

0 commit comments

Comments
 (0)