1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-10 18:54:08 +02:00

[ticket/13847] Move quote generation to text_formatter.utils

PHPBB3-13847
This commit is contained in:
JoshyPHP
2015-05-17 20:15:06 +02:00
parent 6337407192
commit 8a077e0e94
5 changed files with 119 additions and 1 deletions

View File

@@ -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
{