diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-05-20 18:39:35 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-05-20 18:39:35 +0000 |
commit | 5029170afbe7e74a0c46b3b3f1ecca83697ced42 (patch) | |
tree | 4762e7d8d4d3b723d681f0bf5a88f65b266978b2 /phpBB/includes/mcp/mcp_queue.php | |
parent | 037f0bf4da281981dd5bc0e217325d2c49531409 (diff) | |
download | forums-5029170afbe7e74a0c46b3b3f1ecca83697ced42.tar forums-5029170afbe7e74a0c46b3b3f1ecca83697ced42.tar.gz forums-5029170afbe7e74a0c46b3b3f1ecca83697ced42.tar.bz2 forums-5029170afbe7e74a0c46b3b3f1ecca83697ced42.tar.xz forums-5029170afbe7e74a0c46b3b3f1ecca83697ced42.zip |
- fixed a few smaller things
git-svn-id: file:///svn/phpbb/trunk@5952 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/mcp/mcp_queue.php')
-rw-r--r-- | phpBB/includes/mcp/mcp_queue.php | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/phpBB/includes/mcp/mcp_queue.php b/phpBB/includes/mcp/mcp_queue.php index 8c0dc9cd6d..7e8dc6760a 100644 --- a/phpBB/includes/mcp/mcp_queue.php +++ b/phpBB/includes/mcp/mcp_queue.php @@ -458,12 +458,12 @@ function approve_post($post_id_list, $mode) $messenger->assign_vars(array( 'EMAIL_SIG' => $email_sig, 'SITENAME' => $config['sitename'], - 'USERNAME' => $post_data['username'], - 'POST_SUBJECT' => censor_text($post_data['post_subject']), - 'TOPIC_TITLE' => censor_text($post_data['topic_title']), + 'USERNAME' => html_entity_decode($post_data['username']), + 'POST_SUBJECT' => html_entity_decode(censor_text($post_data['post_subject'])), + 'TOPIC_TITLE' => html_entity_decode(censor_text($post_data['topic_title'])), - 'U_VIEW_TOPIC' => "{$phpbb_root_path}viewtopic.$phpEx?f=$forum_id&t={$post_data['topic_id']}&e=0", - 'U_VIEW_POST' => "{$phpbb_root_path}viewtopic.$phpEx?f=$forum_id&t={$post_data['topic_id']}&p=$post_id&e=$post_id") + 'U_VIEW_TOPIC' => generate_board_url() . "/viewtopic.$phpEx?f=$forum_id&t={$post_data['topic_id']}&e=0", + 'U_VIEW_POST' => generate_board_url() . "/viewtopic.$phpEx?f=$forum_id&t={$post_data['topic_id']}&p=$post_id&e=$post_id") ); $messenger->send($post_data['user_notify_type']); @@ -550,6 +550,7 @@ function disapprove_post($post_id_list, $mode) ); $notify_poster = (isset($_REQUEST['notify_poster'])) ? true : false; + $disapprove_reason = ''; if ($reason_id) { @@ -569,8 +570,7 @@ function disapprove_post($post_id_list, $mode) { // If the reason is defined within the language file, we will use the localized version, else just use the database entry... $disapprove_reason = ($row['reason_title'] != 'other') ? ((isset($user->lang['report_reasons']['DESCRIPTION'][strtoupper($row['reason_title'])])) ? $user->lang['report_reasons']['DESCRIPTION'][strtoupper($row['reason_title'])] : $row['reason_description']) : ''; - $disapprove_reason .= ($reason) ? "\n\n" . $_REQUEST['reason'] : ''; - unset($reason); + $disapprove_reason .= ($reason) ? "\n\n" . $reason : ''; } } @@ -671,10 +671,10 @@ function disapprove_post($post_id_list, $mode) $messenger->assign_vars(array( 'EMAIL_SIG' => $email_sig, 'SITENAME' => $config['sitename'], - 'USERNAME' => $post_data['username'], - 'REASON' => $disapprove_reason, - 'POST_SUBJECT' => censor_text($post_data['post_subject']), - 'TOPIC_TITLE' => censor_text($post_data['topic_title'])) + 'USERNAME' => html_entity_decode($post_data['username']), + 'REASON' => html_entity_decode($disapprove_reason), + 'POST_SUBJECT' => html_entity_decode(censor_text($post_data['post_subject'])), + 'TOPIC_TITLE' => html_entity_decode(censor_text($post_data['topic_title']))) ); $messenger->send($post_data['user_notify_type']); |