diff options
author | Máté Bartus <mate.bartus@gmail.com> | 2016-03-08 22:18:42 +0100 |
---|---|---|
committer | Máté Bartus <mate.bartus@gmail.com> | 2016-03-08 22:18:42 +0100 |
commit | a01e3a0ffa2d9fb4d609317aa5e2caed4c521a68 (patch) | |
tree | ea7793775abbd1b0f5a052054bcfa3c5e1af7187 /phpBB/phpbb/notification | |
parent | 9d7b6260bd1ef0a0a07af7ec5cd2c1955f31a74c (diff) | |
parent | 7c45ed0733d525d466ba6d45a13b50e5fc553126 (diff) | |
download | forums-a01e3a0ffa2d9fb4d609317aa5e2caed4c521a68.tar forums-a01e3a0ffa2d9fb4d609317aa5e2caed4c521a68.tar.gz forums-a01e3a0ffa2d9fb4d609317aa5e2caed4c521a68.tar.bz2 forums-a01e3a0ffa2d9fb4d609317aa5e2caed4c521a68.tar.xz forums-a01e3a0ffa2d9fb4d609317aa5e2caed4c521a68.zip |
Merge branch '3.1.x' into 3.2.x
* 3.1.x:
[ticket/14132] Use transaction for adding notifications to type table
[ticket/14519] Skip query if all unread notifications are retrieved
[ticket/14483] Do not send headers by default on access via controller
Conflicts:
phpBB/phpbb/notification/manager.php
Diffstat (limited to 'phpBB/phpbb/notification')
-rw-r--r-- | phpBB/phpbb/notification/manager.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/phpbb/notification/manager.php b/phpBB/phpbb/notification/manager.php index ea1b800dc5..3265bcb629 100644 --- a/phpBB/phpbb/notification/manager.php +++ b/phpBB/phpbb/notification/manager.php @@ -899,6 +899,8 @@ class manager { $notification_type_ids = $this->cache->get('notification_type_ids'); + $this->db->sql_transaction('begin'); + if ($notification_type_ids === false) { $notification_type_ids = array(); @@ -933,6 +935,8 @@ class manager $this->cache->put('notification_type_ids', $notification_type_ids); } + $this->db->sql_transaction('commit'); + return $notification_type_ids[$notification_type_name]; } |