aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2009-07-22 16:39:26 +0000
committerHenry Sudhof <kellanved@phpbb.com>2009-07-22 16:39:26 +0000
commitbe51bbe42b3ca03fe2dcc57205ab5853bf5955cd (patch)
treed5fb7aa3b10194536031b0a01a4717560241dd6f /phpBB/posting.php
parente90f25e9b4090be3e631fe951c558f226add0c9f (diff)
downloadforums-be51bbe42b3ca03fe2dcc57205ab5853bf5955cd.tar
forums-be51bbe42b3ca03fe2dcc57205ab5853bf5955cd.tar.gz
forums-be51bbe42b3ca03fe2dcc57205ab5853bf5955cd.tar.bz2
forums-be51bbe42b3ca03fe2dcc57205ab5853bf5955cd.tar.xz
forums-be51bbe42b3ca03fe2dcc57205ab5853bf5955cd.zip
fall back to bbcode-less quotes
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9835 89ea8834-ac86-4346-8a33-228a782c2dd0
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=&quot;' . $post_data['quote_username'] . '&quot;]' . censor_text(trim($message_parser->message)) . "[/quote]\n";
+ if ($config['allow_bbcode'])
+ {
+ $message_parser->message = '[quote=&quot;' . $post_data['quote_username'] . '&quot;]' . 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)