mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 12:58:52 +00:00
[ticket/12990] Disable all the notifications types which are not in the core
PHPBB3-12990
This commit is contained in:
parent
d2ed2c4e1e
commit
1a41632af8
1 changed files with 5 additions and 0 deletions
|
@ -85,6 +85,11 @@ class notifications_use_full_name extends \phpbb\db\migration\migration
|
||||||
|
|
||||||
public function update_notifications_name()
|
public function update_notifications_name()
|
||||||
{
|
{
|
||||||
|
$sql = 'UPDATE ' . NOTIFICATION_TYPES_TABLE . '
|
||||||
|
SET notification_type_enabled = 0
|
||||||
|
WHERE ' . $this->db->sql_in_set('notification_type_name', $this->notification_types, true);
|
||||||
|
$this->db->sql_query($sql);
|
||||||
|
|
||||||
foreach ($this->notification_types as $notification_type)
|
foreach ($this->notification_types as $notification_type)
|
||||||
{
|
{
|
||||||
$sql = 'UPDATE ' . NOTIFICATION_TYPES_TABLE . "
|
$sql = 'UPDATE ' . NOTIFICATION_TYPES_TABLE . "
|
||||||
|
|
Loading…
Add table
Reference in a new issue