aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_queue.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-08-30 22:57:00 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-08-30 22:57:00 +0200
commitc03d692a98fafa921a832e063c76a3d844632ca7 (patch)
tree68111ed107e013d0264a87fce0826fd5706e3167 /phpBB/includes/mcp/mcp_queue.php
parent625e7ef58aab1b2d61505f756d53c7d85d9f2d2b (diff)
downloadforums-c03d692a98fafa921a832e063c76a3d844632ca7.tar
forums-c03d692a98fafa921a832e063c76a3d844632ca7.tar.gz
forums-c03d692a98fafa921a832e063c76a3d844632ca7.tar.bz2
forums-c03d692a98fafa921a832e063c76a3d844632ca7.tar.xz
forums-c03d692a98fafa921a832e063c76a3d844632ca7.zip
[feature/soft-delete] Fix some more usages of _approved column names
PHPBB3-9657
Diffstat (limited to 'phpBB/includes/mcp/mcp_queue.php')
-rw-r--r--phpBB/includes/mcp/mcp_queue.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php
index cbf0ff0089..3b18b7f0e7 100644
--- a/phpBB/includes/mcp/mcp_queue.php
+++ b/phpBB/includes/mcp/mcp_queue.php
@@ -548,7 +548,7 @@ function approve_post($post_id_list, $id, $mode)
{
$notify_poster = (isset($_REQUEST['notify_poster'])) ? true : false;
- phpbb_content_visibility::unhide_posts_topics('approve', $post_info, $post_id_list);
+ $success_msg = phpbb_content_visibility::unhide_posts_topics('approve', $post_info, $post_id_list);
$messenger = new messenger();
@@ -607,15 +607,6 @@ function approve_post($post_id_list, $id, $mode)
$post_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f={$post_data['forum_id']}&amp;t={$post_data['topic_id']}&amp;p={$post_data['post_id']}") . '#p' . $post_data['post_id'];
}
unset($post_info);
-
- if ($total_topics)
- {
- $success_msg = ($total_topics == 1) ? 'TOPIC_APPROVED_SUCCESS' : 'TOPICS_APPROVED_SUCCESS';
- }
- else
- {
- $success_msg = (sizeof($post_id_list) + sizeof($post_approved_list) == 1) ? 'POST_APPROVED_SUCCESS' : 'POSTS_APPROVED_SUCCESS';
- }
}
else
{