1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-20 01:59:22 +02:00

[ticket/12990] Disable all the notifications types which are not in the core

PHPBB3-12990
This commit is contained in:
Tristan Darricau
2014-08-23 00:27:23 +02:00
parent d2ed2c4e1e
commit 1a41632af8

View File

@ -85,6 +85,11 @@ class notifications_use_full_name extends \phpbb\db\migration\migration
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)
{
$sql = 'UPDATE ' . NOTIFICATION_TYPES_TABLE . "