diff options
author | Nathan Guse <nathaniel.guse@gmail.com> | 2012-09-09 13:29:47 -0500 |
---|---|---|
committer | Nathan Guse <nathaniel.guse@gmail.com> | 2012-09-09 13:29:47 -0500 |
commit | 74e2a8f893a2e7a69ba129a74dd0b3c31e742e79 (patch) | |
tree | ee37d10f14ef100d1b00b64a3d2473e4efb34080 /phpBB/includes/mcp | |
parent | 570fe6cee87da807f0917cdc0c84aee604b50510 (diff) | |
download | forums-74e2a8f893a2e7a69ba129a74dd0b3c31e742e79.tar forums-74e2a8f893a2e7a69ba129a74dd0b3c31e742e79.tar.gz forums-74e2a8f893a2e7a69ba129a74dd0b3c31e742e79.tar.bz2 forums-74e2a8f893a2e7a69ba129a74dd0b3c31e742e79.tar.xz forums-74e2a8f893a2e7a69ba129a74dd0b3c31e742e79.zip |
[ticket/11103] Post notifications
PHPBB3-11103
Diffstat (limited to 'phpBB/includes/mcp')
-rw-r--r-- | phpBB/includes/mcp/mcp_queue.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php index b44685b8a3..d5c431e478 100644 --- a/phpBB/includes/mcp/mcp_queue.php +++ b/phpBB/includes/mcp/mcp_queue.php @@ -421,7 +421,7 @@ class mcp_queue $base_url = $this->u_action . "&f=$forum_id&st=$sort_days&sk=$sort_key&sd=$sort_dir"; phpbb_generate_template_pagination($template, $base_url, 'pagination', 'start', $total, $config['topics_per_page'], $start); - + // Now display the page $template->assign_vars(array( 'L_DISPLAY_ITEMS' => ($mode == 'unapproved_posts') ? $user->lang['DISPLAY_POSTS'] : $user->lang['DISPLAY_TOPICS'], @@ -639,12 +639,12 @@ function approve_post($post_id_list, $id, $mode) if ($post_id == $post_data['topic_first_post_id'] && $post_id == $post_data['topic_last_post_id']) { // Forum Notifications - user_notification('post', $post_data['topic_title'], $post_data['topic_title'], $post_data['forum_name'], $post_data['forum_id'], $post_data['topic_id'], $post_id); + $notifications->add_notifications('topic', $post_data); } else { // Topic Notifications - user_notification('reply', $post_data['post_subject'], $post_data['topic_title'], $post_data['forum_name'], $post_data['forum_id'], $post_data['topic_id'], $post_id); + $notifications->add_notifications('post', $post_data); } } |