aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
author3D-I <eataly3d@gmail.com>2019-07-20 20:23:22 +0200
committer3D-I <eataly3d@gmail.com>2019-07-20 20:24:46 +0200
commitb9f78d64d7fe99b2a1614b43aebe50cd7a841609 (patch)
tree301531ad83feac5100382b1c61d9cad0d75950ba /phpBB
parent9e9bdb69b5e00a4993b7ff9a6021044c9ec0c4dc (diff)
downloadforums-b9f78d64d7fe99b2a1614b43aebe50cd7a841609.tar
forums-b9f78d64d7fe99b2a1614b43aebe50cd7a841609.tar.gz
forums-b9f78d64d7fe99b2a1614b43aebe50cd7a841609.tar.bz2
forums-b9f78d64d7fe99b2a1614b43aebe50cd7a841609.tar.xz
forums-b9f78d64d7fe99b2a1614b43aebe50cd7a841609.zip
[ticket/16102] Add core.posting_modify_post_subject
PHPBB3-16102
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/posting.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 75085a5635..ec047170b6 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -1671,6 +1671,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;