From 575468931fa9e3cd9d6c7ad84167a628bff738c2 Mon Sep 17 00:00:00 2001 From: LaxSlash Date: Fri, 8 Jan 2016 02:44:58 -0500 Subject: [PATCH] [ticket/14395] Add event core.viewtopic_add_quickmod_option_after Added an event before the function phpbb_add_quickmod_option is called in the viewtopic.php file. The function is run before any event can be called to modify ... meaning that any modifications done to this array will not affect the options displayed to the user on the viewtopic page itself. This event serves two purposes - one, it is easier to add new quickmod options, and two, it allows an extenstion developer to check additional permissions and apply further authentication for the display of the quickmod options. PHPBB3-14395 --- phpBB/viewtopic.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 682ed91b36..73c8e33b7f 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -611,7 +611,7 @@ $vars = array( 'topic_id', 'topic_tracking_info', 'viewtopic_url', - 'allow_change_type', + 'allow_change_type', ); extract($phpbb_dispatcher->trigger_event('core.viewtopic_add_quickmod_option_after', compact($vars)));