diff options
| author | JoshyPHP <s9e.dev@gmail.com> | 2015-05-17 20:15:06 +0200 |
|---|---|---|
| committer | JoshyPHP <s9e.dev@gmail.com> | 2015-05-25 21:33:17 +0200 |
| commit | 8a077e0e943d87ee1d26b0501f0b9bcc472ab904 (patch) | |
| tree | fb99c7d9752338aca49c322428b5d1eab3fb2503 /phpBB/posting.php | |
| parent | 633740719218b72bac45bbcdff64def8da483851 (diff) | |
| download | forums-8a077e0e943d87ee1d26b0501f0b9bcc472ab904.tar forums-8a077e0e943d87ee1d26b0501f0b9bcc472ab904.tar.gz forums-8a077e0e943d87ee1d26b0501f0b9bcc472ab904.tar.bz2 forums-8a077e0e943d87ee1d26b0501f0b9bcc472ab904.tar.xz forums-8a077e0e943d87ee1d26b0501f0b9bcc472ab904.zip | |
[ticket/13847] Move quote generation to text_formatter.utils
PHPBB3-13847
Diffstat (limited to 'phpBB/posting.php')
| -rw-r--r-- | phpBB/posting.php | 6 |
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="' . $post_data['quote_username'] . '"]' . 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 { |
