diff options
author | Marc Alexander <admin@m-a-styles.de> | 2018-12-27 21:28:46 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2018-12-27 21:31:51 +0100 |
commit | 3a7d17414dcdf2b4aee2d9d3227ff0b845aad529 (patch) | |
tree | c0255e0acba67902d470c30a64fc9bd038969e3f /phpBB/includes/ucp | |
parent | a4e37a848293070d0ca9e10cbc06308b8ed22349 (diff) | |
parent | 75b993c6a3862a971ca809494811f16edf28d0c7 (diff) | |
download | forums-3a7d17414dcdf2b4aee2d9d3227ff0b845aad529.tar forums-3a7d17414dcdf2b4aee2d9d3227ff0b845aad529.tar.gz forums-3a7d17414dcdf2b4aee2d9d3227ff0b845aad529.tar.bz2 forums-3a7d17414dcdf2b4aee2d9d3227ff0b845aad529.tar.xz forums-3a7d17414dcdf2b4aee2d9d3227ff0b845aad529.zip |
Merge pull request #5468 from senky/ticket/15898
[ticket/15898] Add core.ucp_pm_compose_template
Diffstat (limited to 'phpBB/includes/ucp')
-rw-r--r-- | phpBB/includes/ucp/ucp_pm_compose.php | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/phpBB/includes/ucp/ucp_pm_compose.php b/phpBB/includes/ucp/ucp_pm_compose.php index b1b039add1..621a945479 100644 --- a/phpBB/includes/ucp/ucp_pm_compose.php +++ b/phpBB/includes/ucp/ucp_pm_compose.php @@ -1195,7 +1195,7 @@ function compose_pm($id, $mode, $action, $user_folders = array()) $controller_helper = $phpbb_container->get('controller.helper'); // Start assigning vars for main posting page ... - $template->assign_vars(array( + $template_ary = array( 'L_POST_A' => $page_title, 'L_ICON' => $user->lang['PM_ICON'], 'L_MESSAGE_BODY_EXPLAIN' => $user->lang('MESSAGE_BODY_EXPLAIN', (int) $config['max_post_chars']), @@ -1240,7 +1240,19 @@ function compose_pm($id, $mode, $action, $user_folders = array()) 'S_CLOSE_PROGRESS_WINDOW' => isset($_POST['add_file']), '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')), - )); + ); + + /** + * Modify the default template vars + * + * @event core.ucp_pm_compose_template + * @var array template_ary Template variables + * @since 3.2.6-RC1 + */ + $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 display_custom_bbcodes(); |