1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-10 10:44:20 +02:00

[ticket/12273] Update existing events

PHPBB3-12273
This commit is contained in:
Joas Schilling
2014-04-25 11:46:44 +02:00
parent 01e2d7c26c
commit 87899b0e14
12 changed files with 200 additions and 37 deletions

View File

@@ -82,9 +82,22 @@ $current_time = time();
* language keys.
* @since 3.1-A1
*/
$vars = array('post_id', 'topic_id', 'forum_id', 'draft_id', 'lastclick');
$vars = array_merge($vars, array('submit', 'preview', 'save', 'load', 'delete'));
$vars = array_merge($vars, array('cancel', 'refresh', 'mode', 'error'));
$vars = array(
'post_id',
'topic_id',
'forum_id',
'draft_id',
'lastclick',
'submit',
'preview',
'save',
'load',
'delete',
'cancel',
'refresh',
'mode',
'error',
);
extract($phpbb_dispatcher->trigger_event('core.modify_posting_parameters', compact($vars)));
// Was cancel pressed? If so then redirect to the appropriate page
@@ -1563,8 +1576,16 @@ $template->assign_vars(array(
* @since 3.1-A1
* @change 3.1.0-b3 Added vars post_data, moderators, mode, page_title, s_topic_icons, form_enctype, s_action, s_hidden_fields
*/
$vars = array('post_data', 'moderators', 'mode', 'page_title', 's_topic_icons');
$vars = array_merge($vars, array('form_enctype', 's_action', 's_hidden_fields'));
$vars = array(
'post_data',
'moderators',
'mode',
'page_title',
's_topic_icons',
'form_enctype',
's_action',
's_hidden_fields',
);
extract($phpbb_dispatcher->trigger_event('core.posting_modify_template_vars', compact($vars)));
// Build custom bbcodes array