aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-07-27 14:38:02 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-07-27 14:38:02 +0200
commit84fdba604dbbc76ab0f25fe1f5d70edc1116b98d (patch)
tree35c64ad4b6a3a62b2b8ca5516b0f8d2c54484ff0
parentb12405dbc7dc7bfaa6739aad1c0d028b4eae4052 (diff)
parent1b4f82cd1d523f2947b7b9e62ac8685648fa05dd (diff)
downloadforums-84fdba604dbbc76ab0f25fe1f5d70edc1116b98d.tar
forums-84fdba604dbbc76ab0f25fe1f5d70edc1116b98d.tar.gz
forums-84fdba604dbbc76ab0f25fe1f5d70edc1116b98d.tar.bz2
forums-84fdba604dbbc76ab0f25fe1f5d70edc1116b98d.tar.xz
forums-84fdba604dbbc76ab0f25fe1f5d70edc1116b98d.zip
Merge branch '3.2.x' into 3.3.x
-rw-r--r--phpBB/includes/ucp/ucp_pm_compose.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/includes/ucp/ucp_pm_compose.php b/phpBB/includes/ucp/ucp_pm_compose.php
index 543db4f889..cb45112b01 100644
--- a/phpBB/includes/ucp/ucp_pm_compose.php
+++ b/phpBB/includes/ucp/ucp_pm_compose.php
@@ -1007,6 +1007,16 @@ function compose_pm($id, $mode, $action, $user_folders = array())
if (($action == 'reply' || $action == 'quote' || $action == 'quotepost') && !$preview && !$refresh)
{
$message_subject = ((!preg_match('/^Re:/', $message_subject)) ? 'Re: ' : '') . censor_text($message_subject);
+
+ /**
+ * This event allows you to modify the PM subject of the PM being quoted
+ *
+ * @event core.pm_modify_message_subject
+ * @var string message_subject String with the PM subject already censored.
+ * @since 3.2.8-RC1
+ */
+ $vars = array('message_subject');
+ extract($phpbb_dispatcher->trigger_event('core.pm_modify_message_subject', compact($vars)));
}
if ($action == 'forward' && !$preview && !$refresh && !$submit)