mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 12:58:52 +00:00
[ticket/15898] Add core.ucp_pm_compose_template
PHPBB3-15898
This commit is contained in:
parent
7e003bf687
commit
75b993c6a3
1 changed files with 14 additions and 2 deletions
|
@ -1191,7 +1191,7 @@ function compose_pm($id, $mode, $action, $user_folders = array())
|
||||||
$controller_helper = $phpbb_container->get('controller.helper');
|
$controller_helper = $phpbb_container->get('controller.helper');
|
||||||
|
|
||||||
// Start assigning vars for main posting page ...
|
// Start assigning vars for main posting page ...
|
||||||
$template->assign_vars(array(
|
$template_ary = array(
|
||||||
'L_POST_A' => $page_title,
|
'L_POST_A' => $page_title,
|
||||||
'L_ICON' => $user->lang['PM_ICON'],
|
'L_ICON' => $user->lang['PM_ICON'],
|
||||||
'L_MESSAGE_BODY_EXPLAIN' => $user->lang('MESSAGE_BODY_EXPLAIN', (int) $config['max_post_chars']),
|
'L_MESSAGE_BODY_EXPLAIN' => $user->lang('MESSAGE_BODY_EXPLAIN', (int) $config['max_post_chars']),
|
||||||
|
@ -1236,7 +1236,19 @@ function compose_pm($id, $mode, $action, $user_folders = array())
|
||||||
'S_CLOSE_PROGRESS_WINDOW' => isset($_POST['add_file']),
|
'S_CLOSE_PROGRESS_WINDOW' => isset($_POST['add_file']),
|
||||||
'U_PROGRESS_BAR' => append_sid("{$phpbb_root_path}posting.$phpEx", 'f=0&mode=popup'),
|
'U_PROGRESS_BAR' => append_sid("{$phpbb_root_path}posting.$phpEx", 'f=0&mode=popup'),
|
||||||
'UA_PROGRESS_BAR' => addslashes(append_sid("{$phpbb_root_path}posting.$phpEx", 'f=0&mode=popup')),
|
'UA_PROGRESS_BAR' => addslashes(append_sid("{$phpbb_root_path}posting.$phpEx", 'f=0&mode=popup')),
|
||||||
));
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Modify the default template vars
|
||||||
|
*
|
||||||
|
* @event core.ucp_pm_compose_template
|
||||||
|
* @var array template_ary Template variables
|
||||||
|
* @since 3.2.5
|
||||||
|
*/
|
||||||
|
$vars = array('template_ary');
|
||||||
|
extract($phpbb_dispatcher->trigger_event('core.ucp_pm_compose_template', compact($vars)));
|
||||||
|
|
||||||
|
$template->assign_vars($template_ary);
|
||||||
|
|
||||||
// Build custom bbcodes array
|
// Build custom bbcodes array
|
||||||
display_custom_bbcodes();
|
display_custom_bbcodes();
|
||||||
|
|
Loading…
Add table
Reference in a new issue