aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-09-22 16:59:09 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-09-22 16:59:09 +0200
commita028dfab1224cafcf705406aaf5229773591bf30 (patch)
tree3ec4b33233199118254458c35c76e3734346b34f /phpBB
parent914199d50ff7f264de089c97c77632596aec18a0 (diff)
parent70044669e035bbc0d48df40ab88ba1a1d220a312 (diff)
downloadforums-a028dfab1224cafcf705406aaf5229773591bf30.tar
forums-a028dfab1224cafcf705406aaf5229773591bf30.tar.gz
forums-a028dfab1224cafcf705406aaf5229773591bf30.tar.bz2
forums-a028dfab1224cafcf705406aaf5229773591bf30.tar.xz
forums-a028dfab1224cafcf705406aaf5229773591bf30.zip
Merge branch '3.2.x' into 3.3.x
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/viewtopic.php17
1 files changed, 15 insertions, 2 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index dadbe9a06c..4e502538c8 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -2360,12 +2360,25 @@ if ($s_can_vote || $s_quick_reply)
($s_notify) ? $qr_hidden_fields['notify'] = 1 : true;
($topic_data['topic_status'] == ITEM_LOCKED) ? $qr_hidden_fields['lock_topic'] = 1 : true;
- $template->assign_vars(array(
+ $tpl_ary = [
'S_QUICK_REPLY' => true,
'U_QR_ACTION' => append_sid("{$phpbb_root_path}posting.$phpEx", "mode=reply&amp;f=$forum_id&amp;t=$topic_id"),
'QR_HIDDEN_FIELDS' => build_hidden_fields($qr_hidden_fields),
'SUBJECT' => 'Re: ' . censor_text($topic_data['topic_title']),
- ));
+ ];
+
+ /**
+ * Event after the quick-reply has been setup
+ *
+ * @event core.viewtopic_modify_quick_reply_template_vars
+ * @var array tpl_ary Array with template data
+ * @var array topic_data Array with topic data
+ * @since 3.2.9-RC1
+ */
+ $vars = ['tpl_ary', 'topic_data'];
+ extract($phpbb_dispatcher->trigger_event('core.viewtopic_modify_quick_reply_template_vars', compact($vars)));
+
+ $template->assign_vars($tpl_ary);
}
}
// now I have the urge to wash my hands :(