aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_queue.php
diff options
context:
space:
mode:
authorMáté Bartus <mate.bartus@gmail.com>2015-07-14 12:19:52 +0200
committerMáté Bartus <mate.bartus@gmail.com>2015-07-14 12:19:52 +0200
commit1127f8bbf842e9c494cce624e4e61a2e86706862 (patch)
tree6eb8edf56222b8829896eaef4da5937234d3d03c /phpBB/includes/mcp/mcp_queue.php
parentda0897323b9b5b9e1e376dc3d1c9fe7024568781 (diff)
parent11bef3e22ed8cc2109ab7a5b4229f393d3648862 (diff)
downloadforums-1127f8bbf842e9c494cce624e4e61a2e86706862.tar
forums-1127f8bbf842e9c494cce624e4e61a2e86706862.tar.gz
forums-1127f8bbf842e9c494cce624e4e61a2e86706862.tar.bz2
forums-1127f8bbf842e9c494cce624e4e61a2e86706862.tar.xz
forums-1127f8bbf842e9c494cce624e4e61a2e86706862.zip
Merge pull request #3751 from Nicofuma/ticket/11444
[ticket/11444] Moving the in-board notifications to a method class
Diffstat (limited to 'phpBB/includes/mcp/mcp_queue.php')
-rw-r--r--phpBB/includes/mcp/mcp_queue.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php
index 596364cefd..3488ea326d 100644
--- a/phpBB/includes/mcp/mcp_queue.php
+++ b/phpBB/includes/mcp/mcp_queue.php
@@ -166,7 +166,7 @@ class mcp_queue
{
$post_id = (int) $topic_info[$topic_id]['topic_first_post_id'];
- $phpbb_notifications->mark_notifications_read('notification.type.topic_in_queue', $topic_id, $user->data['user_id']);
+ $phpbb_notifications->mark_notifications('topic_in_queue', $topic_id, $user->data['user_id']);
}
else
{
@@ -174,7 +174,7 @@ class mcp_queue
}
}
- $phpbb_notifications->mark_notifications_read('notification.type.post_in_queue', $post_id, $user->data['user_id']);
+ $phpbb_notifications->mark_notifications('post_in_queue', $post_id, $user->data['user_id']);
$post_info = phpbb_get_post_data(array($post_id), 'm_approve', true);
@@ -738,7 +738,7 @@ class mcp_queue
$phpbb_notifications->add_notifications(array('notification.type.quote'), $post_data);
$phpbb_notifications->delete_notifications('notification.type.post_in_queue', $post_id);
- $phpbb_notifications->mark_notifications_read(array(
+ $phpbb_notifications->mark_notifications(array(
'notification.type.quote',
'notification.type.bookmark',
'notification.type.post',
@@ -974,8 +974,8 @@ class mcp_queue
), $topic_data);
}
- $phpbb_notifications->mark_notifications_read('notification.type.quote', $topic_data['post_id'], $user->data['user_id']);
- $phpbb_notifications->mark_notifications_read('notification.type.topic', $topic_id, $user->data['user_id']);
+ $phpbb_notifications->mark_notifications('quote', $topic_data['post_id'], $user->data['user_id']);
+ $phpbb_notifications->mark_notifications('topic', $topic_id, $user->data['user_id']);
if ($notify_poster)
{