From f80dc9dc16ec0addf286dfdfe853dc696d7d8ece Mon Sep 17 00:00:00 2001 From: javiexin Date: Mon, 27 Apr 2015 17:36:43 +0200 Subject: [PATCH] [ticket/13786] Add events to add MCP post options Three new events are included: 1) Core event to perform new moderator action in includes/mcp/mcp_post.php 2) Core event to add/modify template data in includes/mcp/mcp_post.php 3) Template event to present new options in template/mcp_post.html Fix another typo. PHPBB3-13786 --- phpBB/includes/mcp/mcp_post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/mcp/mcp_post.php b/phpBB/includes/mcp/mcp_post.php index 03bf7cb1d7..47ff065fe4 100644 --- a/phpBB/includes/mcp/mcp_post.php +++ b/phpBB/includes/mcp/mcp_post.php @@ -285,7 +285,7 @@ function mcp_post_details($id, $mode, $action) 'attachments', 's_additional_opts', ); - extract($phpbb_dispatcher->trigger_event('core.viewtopic_modify_poll_template_data', compact($vars))); + extract($phpbb_dispatcher->trigger_event('core.mcp_post_template_data', compact($vars))); $template->assign_vars($mcp_post_template_data); $template->assign_var('S_MCP_POST_ADDITIONAL_OPTS', $s_additional_opts);