aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_queue.php
diff options
context:
space:
mode:
authormarcosbc <marcosbc>2014-03-15 21:16:13 +0100
committermarcosbc <marcosbc>2014-05-03 20:29:28 +0200
commit7446361ad4d14bdd4d8074978d51952918fca637 (patch)
treee81dea241e24274f9a1df2fffa4c9f3b9e4a6ecc /phpBB/includes/mcp/mcp_queue.php
parentb60108dc78af581fe5327fce4037731555203320 (diff)
downloadforums-7446361ad4d14bdd4d8074978d51952918fca637.tar
forums-7446361ad4d14bdd4d8074978d51952918fca637.tar.gz
forums-7446361ad4d14bdd4d8074978d51952918fca637.tar.bz2
forums-7446361ad4d14bdd4d8074978d51952918fca637.tar.xz
forums-7446361ad4d14bdd4d8074978d51952918fca637.zip
[ticket/12270] Corrent post and topic approval notification message
When you submit a post with needed approval (say user A), and then it gets approved by another user (user B), a subscribed user (user C) to that forum would receive a notification indicating: -A has replied to topic 'New Topic' in the forum 'xyz'. The expected result would be: -A has posted a new topic 'New topic' in the forum 'xyz'. This has fixed by adding a TOPIC_ID template variable to mcp_post.html and, in there, depending if the first post is the topic's first post or not, add a input's with name topic_id_list[] or post_id_list[] and then the respective value (TOPIC_ID or POST_ID). PHPBB3-12270
Diffstat (limited to 'phpBB/includes/mcp/mcp_queue.php')
-rw-r--r--phpBB/includes/mcp/mcp_queue.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php
index a71bc997e9..16ec5e14e4 100644
--- a/phpBB/includes/mcp/mcp_queue.php
+++ b/phpBB/includes/mcp/mcp_queue.php
@@ -316,6 +316,7 @@ class mcp_queue
'POST_IP' => $post_info['poster_ip'],
'POST_IPADDR' => ($auth->acl_get('m_info', $post_info['forum_id']) && request_var('lookup', '')) ? @gethostbyaddr($post_info['poster_ip']) : '',
'POST_ID' => $post_info['post_id'],
+ 'TOPIC_ID' => $post_info['topic_id'],
'S_FIRST_POST' => ($post_info['topic_first_post_id'] == $post_id),
'U_LOOKUP_IP' => ($auth->acl_get('m_info', $post_info['forum_id'])) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=queue&amp;mode=approve_details&amp;f=' . $post_info['forum_id'] . '&amp;p=' . $post_id . '&amp;lookup=' . $post_info['poster_ip']) . '#ip' : '',