mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/10620] Implemented quote improvements
PHPBB3-10620
This commit is contained in:
@@ -941,9 +941,18 @@ function compose_pm($id, $mode, $action, $user_folders = array())
|
||||
{
|
||||
$message_link = '';
|
||||
}
|
||||
$quote_attributes = array(
|
||||
'author' => $quote_username,
|
||||
'time' => $post['message_time'],
|
||||
'user_id' => $post['author_id'],
|
||||
);
|
||||
if ($action === 'quotepost')
|
||||
{
|
||||
$quote_attributes['post_id'] = $post['msg_id'];
|
||||
}
|
||||
$quote_text = $phpbb_container->get('text_formatter.utils')->generate_quote(
|
||||
censor_text($message_parser->message),
|
||||
array('author' => $quote_username)
|
||||
$quote_attributes
|
||||
);
|
||||
$message_parser->message = $message_link . $quote_text . "\n\n";
|
||||
}
|
||||
|
Reference in New Issue
Block a user