aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
author3D-I <480857+3D-I@users.noreply.github.com>2019-08-25 23:16:51 +0200
committer3D-I <480857+3D-I@users.noreply.github.com>2019-08-25 23:18:08 +0200
commit694a90c18e52edb3860406a1381283cbb6fb6bcb (patch)
treef5ae3fb743cd470d0ffd73379b4fdac95bfdb591 /phpBB/viewtopic.php
parent9c15594fe498a8a1640bb89aa0c93800918a9798 (diff)
downloadforums-694a90c18e52edb3860406a1381283cbb6fb6bcb.tar
forums-694a90c18e52edb3860406a1381283cbb6fb6bcb.tar.gz
forums-694a90c18e52edb3860406a1381283cbb6fb6bcb.tar.bz2
forums-694a90c18e52edb3860406a1381283cbb6fb6bcb.tar.xz
forums-694a90c18e52edb3860406a1381283cbb6fb6bcb.zip
[ticket/16139] Add core.viewtopic_modify_quick_reply_template_vars
PHPBB3-16139
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php17
1 files changed, 15 insertions, 2 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 0c2be8c52e..f0b0021626 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -2359,12 +2359,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 :(