aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2015-05-29 15:42:14 +0200
committerTristan Darricau <tristan.darricau@sensiolabs.com>2015-05-29 15:42:14 +0200
commitf5dbc3b6f269cb3841c20ad0096fcedb3dac7492 (patch)
tree5ca32d171af32f236d82cbf11cedfe3735c5fa3d /phpBB/posting.php
parent3c3b099f88471e05358fe3c01bb74caac69e89e7 (diff)
parent64e1824abdb2a9c860e049f10ecc81c051160ff5 (diff)
downloadforums-f5dbc3b6f269cb3841c20ad0096fcedb3dac7492.tar
forums-f5dbc3b6f269cb3841c20ad0096fcedb3dac7492.tar.gz
forums-f5dbc3b6f269cb3841c20ad0096fcedb3dac7492.tar.bz2
forums-f5dbc3b6f269cb3841c20ad0096fcedb3dac7492.tar.xz
forums-f5dbc3b6f269cb3841c20ad0096fcedb3dac7492.zip
Merge pull request #3616 from s9e/ticket/13847
[ticket/13847] Move quote generation to text_formatter.utils
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index a4fb4d7a8d..4d52da2567 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -1597,7 +1597,11 @@ if ($generate_quote)
{
if ($config['allow_bbcode'])
{
- $message_parser->message = '[quote=&quot;' . $post_data['quote_username'] . '&quot;]' . censor_text(trim($message_parser->message)) . "[/quote]\n";
+ $message_parser->message = $phpbb_container->get('text_formatter.utils')->generate_quote(
+ censor_text(trim($message_parser->message)),
+ array('author' => $post_data['quote_username'])
+ );
+ $message_parser->message .= "\n";
}
else
{