aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_queue.php
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2007-08-09 03:12:38 +0000
committerDavid M <davidmj@users.sourceforge.net>2007-08-09 03:12:38 +0000
commitd6bcbf0521b833955068cafef51a0d68b395638d (patch)
treef2af2e50f62546d9fcfcc644da4b86f36c2a276e /phpBB/includes/mcp/mcp_queue.php
parent32226e71335e8b77be350a66ba7ae56a1e8b4e5a (diff)
downloadforums-d6bcbf0521b833955068cafef51a0d68b395638d.tar
forums-d6bcbf0521b833955068cafef51a0d68b395638d.tar.gz
forums-d6bcbf0521b833955068cafef51a0d68b395638d.tar.bz2
forums-d6bcbf0521b833955068cafef51a0d68b395638d.tar.xz
forums-d6bcbf0521b833955068cafef51a0d68b395638d.zip
#13973
git-svn-id: file:///svn/phpbb/trunk@8017 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/mcp/mcp_queue.php')
-rw-r--r--phpBB/includes/mcp/mcp_queue.php41
1 files changed, 36 insertions, 5 deletions
diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php
index 06cabf65a0..f82a99c2c3 100644
--- a/phpBB/includes/mcp/mcp_queue.php
+++ b/phpBB/includes/mcp/mcp_queue.php
@@ -460,12 +460,12 @@ function approve_post($post_id_list, $id, $mode)
'redirect' => $redirect)
);
+ $post_info = get_post_data($post_id_list, 'm_approve');
+
if (confirm_box(true))
{
$notify_poster = (isset($_REQUEST['notify_poster'])) ? true : false;
- $post_info = get_post_data($post_id_list, 'm_approve');
-
// If Topic -> total_topics = total_topics+1, total_posts = total_posts+1, forum_topics = forum_topics+1, forum_posts = forum_posts+1
// If Post -> total_posts = total_posts+1, forum_posts = forum_posts+1, topic_replies = topic_replies+1
@@ -690,8 +690,23 @@ function approve_post($post_id_list, $id, $mode)
}
else
{
+ $show_notify = false;
+
+ foreach ($post_info as $post_data)
+ {
+ if ($post_data['poster_id'] == ANONYMOUS)
+ {
+ continue;
+ }
+ else
+ {
+ $show_notify = true;
+ break;
+ }
+ }
+
$template->assign_vars(array(
- 'S_NOTIFY_POSTER' => true,
+ 'S_NOTIFY_POSTER' => $show_notify,
'S_APPROVE' => true)
);
@@ -771,9 +786,10 @@ function disapprove_post($post_id_list, $id, $mode)
}
}
+ $post_info = get_post_data($post_id_list, 'm_approve');
+
if (confirm_box(true))
{
- $post_info = get_post_data($post_id_list, 'm_approve');
// If Topic -> forum_topics_real -= 1
// If Post -> topic_replies_real -= 1
@@ -929,8 +945,23 @@ function disapprove_post($post_id_list, $id, $mode)
display_reasons($reason_id);
+ $show_notify = false;
+
+ foreach ($post_info as $post_data)
+ {
+ if ($post_data['poster_id'] == ANONYMOUS)
+ {
+ continue;
+ }
+ else
+ {
+ $show_notify = true;
+ break;
+ }
+ }
+
$template->assign_vars(array(
- 'S_NOTIFY_POSTER' => true,
+ 'S_NOTIFY_POSTER' => $show_notify,
'S_APPROVE' => false,
'REASON' => $reason,
'ADDITIONAL_MSG' => $additional_msg)