mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
[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
This commit is contained in:
parent
b60108dc78
commit
7446361ad4
2 changed files with 11 additions and 2 deletions
|
@ -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&mode=approve_details&f=' . $post_info['forum_id'] . '&p=' . $post_id . '&lookup=' . $post_info['poster_ip']) . '#ip' : '',
|
||||
|
|
|
@ -75,8 +75,12 @@
|
|||
<p class="post-notice unapproved">
|
||||
<input class="button2" type="submit" value="{L_DISAPPROVE}" name="action[disapprove]" />
|
||||
<input class="button1" type="submit" value="{L_APPROVE}" name="action[approve]" />
|
||||
<!-- IF not S_FIRST_POST --><input type="hidden" name="mode" value="unapproved_posts" /><!-- ENDIF -->
|
||||
<!-- IF not S_FIRST_POST -->
|
||||
<input type="hidden" name="mode" value="unapproved_posts" />
|
||||
<input type="hidden" name="post_id_list[]" value="{POST_ID}" />
|
||||
<!-- ELSE -->
|
||||
<input type="hidden" name="topic_id_list[]" value="{TOPIC_ID}" />
|
||||
<!-- ENDIF -->
|
||||
{S_FORM_TOKEN}
|
||||
</p>
|
||||
</form>
|
||||
|
@ -86,8 +90,12 @@
|
|||
<p class="post-notice deleted">
|
||||
<input class="button2" type="submit" value="{L_DELETE}" name="action[disapprove]" />
|
||||
<input class="button1" type="submit" value="{L_RESTORE}" name="action[restore]" />
|
||||
<!-- IF not S_FIRST_POST --><input type="hidden" name="mode" value="unapproved_posts" /><!-- ENDIF -->
|
||||
<!-- IF not S_FIRST_POST -->
|
||||
<input type="hidden" name="mode" value="unapproved_posts" />
|
||||
<input type="hidden" name="post_id_list[]" value="{POST_ID}" />
|
||||
<!-- ELSE -->
|
||||
<input type="hidden" name="topic_id_list[]" value="{TOPIC_ID}" />
|
||||
<!-- ENDIF -->
|
||||
{S_FORM_TOKEN}
|
||||
</p>
|
||||
</form>
|
||||
|
|
Loading…
Add table
Reference in a new issue