aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2014-08-24 00:20:24 +0200
committerMarc Alexander <admin@m-a-styles.de>2014-08-24 00:20:24 +0200
commite2c56609ab275e45bbcb38a213c530ccd41ceff6 (patch)
tree5b100a02a0f0d9672e53247980d2a941a4f194eb /phpBB/phpbb
parent1e09fd0ceea5e9246f5ee9c71a4c54c2099632a7 (diff)
parent1a41632af86905e93280d3bcb51a9603b369f08f (diff)
downloadforums-e2c56609ab275e45bbcb38a213c530ccd41ceff6.tar
forums-e2c56609ab275e45bbcb38a213c530ccd41ceff6.tar.gz
forums-e2c56609ab275e45bbcb38a213c530ccd41ceff6.tar.bz2
forums-e2c56609ab275e45bbcb38a213c530ccd41ceff6.tar.xz
forums-e2c56609ab275e45bbcb38a213c530ccd41ceff6.zip
Merge pull request #2904 from Nicofuma/ticket/12990
[ticket/12990] Disable all the notifications types which are not in the core
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/db/migration/data/v310/notifications_use_full_name.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/v310/notifications_use_full_name.php b/phpBB/phpbb/db/migration/data/v310/notifications_use_full_name.php
index 30168f4b0b..f749b32119 100644
--- a/phpBB/phpbb/db/migration/data/v310/notifications_use_full_name.php
+++ b/phpBB/phpbb/db/migration/data/v310/notifications_use_full_name.php
@@ -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 . "