mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[feature/events] Fixing core.acp_forums_add_forum_data
PHPBB3-9550
This commit is contained in:
parent
eb7a04d324
commit
19a3164e80
1 changed files with 5 additions and 5 deletions
|
@ -107,6 +107,11 @@ class acp_forums
|
|||
'forum_id' => $forum_id
|
||||
);
|
||||
|
||||
$vars = array('forum_data');
|
||||
$event = new phpbb_event_data(compact($vars));
|
||||
$phpbb_dispatcher->dispatch('core.acp_forums_add_forum_data', $event);
|
||||
extract($event->get_data_filtered($vars));
|
||||
|
||||
// No break here
|
||||
|
||||
case 'add':
|
||||
|
@ -220,11 +225,6 @@ class acp_forums
|
|||
}
|
||||
|
||||
trigger_error($message . adm_back_link($this->u_action . '&parent_id=' . $this->parent_id));
|
||||
|
||||
$vars = array('forum_data');
|
||||
$event = new phpbb_event_data(compact($vars));
|
||||
$phpbb_dispatcher->dispatch('core.acp_forums_add_forum_data', $event);
|
||||
extract($event->get_data_filtered($vars));
|
||||
}
|
||||
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue