mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[ticket/13847] Updated ucp_pm_compose to use the utils service
...when quoting a post PHPBB3-13847
This commit is contained in:
@@ -947,7 +947,11 @@ function compose_pm($id, $mode, $action, $user_folders = array())
|
||||
{
|
||||
$message_link = '';
|
||||
}
|
||||
$message_parser->message = $message_link . '[quote="' . $quote_username . '"]' . censor_text(trim($message_parser->message)) . "[/quote]\n";
|
||||
$quote_text = $phpbb_container->get('text_formatter.utils')->generate_quote(
|
||||
censor_text(trim($message_parser->message)),
|
||||
array('author' => $quote_username)
|
||||
);
|
||||
$message_parser->message = $message_link . $quote_text . "\n";
|
||||
}
|
||||
|
||||
if (($action == 'reply' || $action == 'quote' || $action == 'quotepost') && !$preview && !$refresh)
|
||||
|
Reference in New Issue
Block a user