aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2012-10-18 18:32:13 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2012-10-18 18:32:13 -0500
commitae670cc87df197e44b768667b853e1dae3009b4d (patch)
treeba39c95e90ee469f29694b447f50d560b47142bc /phpBB/includes/mcp
parent883a96172065b5eb7b07f7c6e19ff2b1d5079ef9 (diff)
downloadforums-ae670cc87df197e44b768667b853e1dae3009b4d.tar
forums-ae670cc87df197e44b768667b853e1dae3009b4d.tar.gz
forums-ae670cc87df197e44b768667b853e1dae3009b4d.tar.bz2
forums-ae670cc87df197e44b768667b853e1dae3009b4d.tar.xz
forums-ae670cc87df197e44b768667b853e1dae3009b4d.zip
[ticket/11103] Remove unnecessary comments
Comments that are not needed because the actions are completely self-explanatory PHPBB3-11103
Diffstat (limited to 'phpBB/includes/mcp')
-rw-r--r--phpBB/includes/mcp/mcp_pm_reports.php1
-rw-r--r--phpBB/includes/mcp/mcp_queue.php11
-rw-r--r--phpBB/includes/mcp/mcp_reports.php1
3 files changed, 0 insertions, 13 deletions
diff --git a/phpBB/includes/mcp/mcp_pm_reports.php b/phpBB/includes/mcp/mcp_pm_reports.php
index 227c89bb79..001edfd8db 100644
--- a/phpBB/includes/mcp/mcp_pm_reports.php
+++ b/phpBB/includes/mcp/mcp_pm_reports.php
@@ -90,7 +90,6 @@ class mcp_pm_reports
trigger_error('NO_REPORT');
}
- // Mark the notification as read
$phpbb_notifications->mark_notifications_read_by_parent('report_pm', $report_id, $user->data['user_id']);
$pm_id = $report['pm_id'];
diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php
index b23e5f4e45..72f1c00c72 100644
--- a/phpBB/includes/mcp/mcp_queue.php
+++ b/phpBB/includes/mcp/mcp_queue.php
@@ -86,7 +86,6 @@ class mcp_queue
{
$post_id = (int) $topic_info[$topic_id]['topic_first_post_id'];
- // Mark the notification as read
$phpbb_notifications->mark_notifications_read('topic_in_queue', $topic_id, $user->data['user_id']);
}
else
@@ -95,7 +94,6 @@ class mcp_queue
}
}
- // Mark the notification as read
$phpbb_notifications->mark_notifications_read('post_in_queue', $post_id, $user->data['user_id']);
$post_info = get_post_data(array($post_id), 'm_approve', true);
@@ -612,13 +610,10 @@ 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'])
{
- // Delete topic in queue notifications
$phpbb_notifications->delete_notifications(array('topic_in_queue'), $post_data['topic_id']);
- // Forum Notifications
$phpbb_notifications->add_notifications('topic', $post_data);
- // Notify poster?
if ($notify_poster)
{
$phpbb_notifications->add_notifications('approve_topic', $post_data);
@@ -626,13 +621,10 @@ function approve_post($post_id_list, $id, $mode)
}
else
{
- // Delete post in queue notification
$phpbb_notifications->delete_notifications(array('post_in_queue'), $post_id);
- // Topic Notifications
$phpbb_notifications->add_notifications(array('quote', 'bookmark', 'post'), $post_data);
- // Notify poster?
if ($notify_poster)
{
$phpbb_notifications->add_notifications('approve_post', $post_data);
@@ -859,7 +851,6 @@ function disapprove_post($post_id_list, $id, $mode)
}
}
- // Handle notifications (topic/post in queue)
foreach ($post_info as $post_id => $post_data)
{
if ($post_id == $post_data['topic_first_post_id'] && $post_id == $post_data['topic_last_post_id'])
@@ -912,7 +903,6 @@ function disapprove_post($post_id_list, $id, $mode)
if ($post_id == $post_data['topic_first_post_id'] && $post_id == $post_data['topic_last_post_id'])
{
- // Notify poster?
if ($notify_poster)
{
$phpbb_notifications->add_notifications('disapprove_topic', $post_data);
@@ -920,7 +910,6 @@ function disapprove_post($post_id_list, $id, $mode)
}
else
{
- // Notify poster?
if ($notify_poster)
{
$phpbb_notifications->add_notifications('disapprove_post', $post_data);
diff --git a/phpBB/includes/mcp/mcp_reports.php b/phpBB/includes/mcp/mcp_reports.php
index 7c6352a244..f6121e7e03 100644
--- a/phpBB/includes/mcp/mcp_reports.php
+++ b/phpBB/includes/mcp/mcp_reports.php
@@ -88,7 +88,6 @@ class mcp_reports
trigger_error('NO_REPORT');
}
- // Mark the notification as read
$phpbb_notifications->mark_notifications_read('report_post', $post_id, $user->data['user_id']);
if (!$report_id && $report['report_closed'])