aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 53746437ba..9f7fefd81c 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -1187,7 +1187,15 @@ $message_parser->decode_message($post_data['bbcode_uid']);
if ($mode == 'quote' && !$submit && !$preview && !$refresh)
{
- $message_parser->message = '[quote="' . $post_data['quote_username'] . '"]' . censor_text(trim($message_parser->message)) . "[/quote]\n";
+ if ($config['allow_bbcode'])
+ {
+ $message_parser->message = '[quote="' . $post_data['quote_username'] . '"]' . censor_text(trim($message_parser->message)) . "[/quote]\n";
+ }
+ else
+ {
+ $message = '> ' . utf8_wordwrap(censor_text(trim($message_parser->message)), 75, "\n> ");
+ $message_parser->message = $post_data['quote_username'] . " " . $user->lang['WROTE'] . " :\n" . $message . "\n";
+ }
}
if (($mode == 'reply' || $mode == 'quote') && !$submit && !$preview && !$refresh)