aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-07-27 14:30:30 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-07-27 14:30:30 +0200
commit978d1976b04264fcb1518e84d51450c96e548694 (patch)
treeb79594c075efd6fec92a246898e1a06171fc129b /phpBB/posting.php
parentb59e101d8d0330e66ead269079fba90525838c1e (diff)
parentb9f78d64d7fe99b2a1614b43aebe50cd7a841609 (diff)
downloadforums-978d1976b04264fcb1518e84d51450c96e548694.tar
forums-978d1976b04264fcb1518e84d51450c96e548694.tar.gz
forums-978d1976b04264fcb1518e84d51450c96e548694.tar.bz2
forums-978d1976b04264fcb1518e84d51450c96e548694.tar.xz
forums-978d1976b04264fcb1518e84d51450c96e548694.zip
Merge pull request #5629 from 3D-I/ticket/16102
[ticket/16102] Add core.posting_modify_post_subject
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 003d3af5c2..5089448483 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -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;