mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge branch '3.3.x'
This commit is contained in:
commit
1ba63ddfab
1 changed files with 15 additions and 2 deletions
|
@ -2360,12 +2360,25 @@ if ($s_can_vote || $s_quick_reply)
|
||||||
($s_notify) ? $qr_hidden_fields['notify'] = 1 : true;
|
($s_notify) ? $qr_hidden_fields['notify'] = 1 : true;
|
||||||
($topic_data['topic_status'] == ITEM_LOCKED) ? $qr_hidden_fields['lock_topic'] = 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,
|
'S_QUICK_REPLY' => true,
|
||||||
'U_QR_ACTION' => append_sid("{$phpbb_root_path}posting.$phpEx", "mode=reply&f=$forum_id&t=$topic_id"),
|
'U_QR_ACTION' => append_sid("{$phpbb_root_path}posting.$phpEx", "mode=reply&f=$forum_id&t=$topic_id"),
|
||||||
'QR_HIDDEN_FIELDS' => build_hidden_fields($qr_hidden_fields),
|
'QR_HIDDEN_FIELDS' => build_hidden_fields($qr_hidden_fields),
|
||||||
'SUBJECT' => 'Re: ' . censor_text($topic_data['topic_title']),
|
'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 :(
|
// now I have the urge to wash my hands :(
|
||||||
|
|
Loading…
Add table
Reference in a new issue