1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-31 03:29:23 +02:00

Merge pull request #5629 from 3D-I/ticket/16102

[ticket/16102] Add core.posting_modify_post_subject
This commit is contained in:
Marc Alexander 2019-07-27 14:30:30 +02:00
commit 978d1976b0
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -1690,6 +1690,20 @@ if ($generate_quote)
if (($mode == 'reply' || $mode == 'quote') && !$submit && !$preview && !$refresh)
{
$post_data['post_subject'] = ((strpos($post_data['post_subject'], 'Re: ') !== 0) ? 'Re: ' : '') . censor_text($post_data['post_subject']);
$post_subject = $post_data['post_subject'];
/**
* This event allows you to modify the post subject of the post being quoted
*
* @event core.posting_modify_post_subject
* @var string post_subject String with the post subject already censored.
* @since 3.2.8-RC1
*/
$vars = array('post_subject');
extract($phpbb_dispatcher->trigger_event('core.posting_modify_post_subject', compact($vars)));
$post_data['post_subject'] = $post_subject;
}
$attachment_data = $message_parser->attachment_data;