aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-06-17 11:54:42 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-06-17 11:54:42 +0000
commitdc53e86bf92f1f8183a5f78cedcc1c5fc5782d96 (patch)
treebe06775595c3ca9e8bf65b4c64216b0cf880c649 /phpBB/includes/functions_posting.php
parent505e08d59de0dc70bb5e172dd7e508a4c4aaae0b (diff)
downloadforums-dc53e86bf92f1f8183a5f78cedcc1c5fc5782d96.tar
forums-dc53e86bf92f1f8183a5f78cedcc1c5fc5782d96.tar.gz
forums-dc53e86bf92f1f8183a5f78cedcc1c5fc5782d96.tar.bz2
forums-dc53e86bf92f1f8183a5f78cedcc1c5fc5782d96.tar.xz
forums-dc53e86bf92f1f8183a5f78cedcc1c5fc5782d96.zip
fix bug #2267 (inline quotes are not having bbcodes correctly applied)
git-svn-id: file:///svn/phpbb/trunk@6085 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php31
1 files changed, 21 insertions, 10 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index ff9867d11c..127d7b2af4 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -852,6 +852,16 @@ function topic_review($topic_id, $forum_id, $mode = 'topic_review', $cur_post_id
$post_subject = $row['post_subject'];
$message = $row['post_text'];
+ $decoded_message = false;
+
+ if ($show_quote_button && $auth->acl_get('f_reply', $forum_id))
+ {
+ $decoded_message = $message;
+ decode_message($decoded_message, $row['bbcode_uid']);
+
+ $decoded_message = censor_text($decoded_message);
+ $decoded_message = str_replace("\n", "<br />", $decoded_message);
+ }
if ($row['bbcode_bitfield'])
{
@@ -864,16 +874,17 @@ function topic_review($topic_id, $forum_id, $mode = 'topic_review', $cur_post_id
$message = censor_text($message);
$template->assign_block_vars($mode . '_row', array(
- 'POSTER_NAME' => $poster,
- 'POST_SUBJECT' => $post_subject,
- 'MINI_POST_IMG' => $user->img('icon_post', $user->lang['POST']),
- 'POST_DATE' => $user->format_date($row['post_time']),
- 'MESSAGE' => str_replace("\n", '<br />', $message),
-
- 'U_POST_ID' => $row['post_id'],
- 'U_MINI_POST' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'p=' . $row['post_id']) . '#p' . $row['post_id'],
- 'U_MCP_DETAILS' => ($auth->acl_get('m_info', $forum_id)) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=main&amp;mode=post_details&amp;f=' . $forum_id . '&amp;p=' . $row['post_id'], true, $user->session_id) : '',
- 'U_QUOTE' => ($show_quote_button && $auth->acl_get('f_reply', $forum_id)) ? 'javascript:addquote(' . $row['post_id'] . ", '" . addslashes($poster) . "')" : '')
+ 'POSTER_NAME' => $poster,
+ 'POST_SUBJECT' => $post_subject,
+ 'MINI_POST_IMG' => $user->img('icon_post', $user->lang['POST']),
+ 'POST_DATE' => $user->format_date($row['post_time']),
+ 'MESSAGE' => str_replace("\n", '<br />', $message),
+ 'DECODED_MESSAGE' => $decoded_message,
+
+ 'U_POST_ID' => $row['post_id'],
+ 'U_MINI_POST' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", 'p=' . $row['post_id']) . '#p' . $row['post_id'],
+ 'U_MCP_DETAILS' => ($auth->acl_get('m_info', $forum_id)) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=main&amp;mode=post_details&amp;f=' . $forum_id . '&amp;p=' . $row['post_id'], true, $user->session_id) : '',
+ 'U_QUOTE' => ($show_quote_button && $auth->acl_get('f_reply', $forum_id)) ? 'javascript:addquote(' . $row['post_id'] . ", '" . addslashes($poster) . "')" : '')
);
unset($rowset[$i]);
}