diff options
author | Michael Cullum <unknownbliss@phpbbdevelopers.net> | 2012-03-20 11:23:03 +0000 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2012-08-01 10:18:44 +0200 |
commit | 8af7d225ef481cd26e6fd7862847183d25727117 (patch) | |
tree | 8347065c186e787aa41eb6b7c7547491268be80a /phpBB/includes/ucp/ucp_zebra.php | |
parent | ba63df2dce9da69caa31f1f4404b3b79a7f4f75e (diff) | |
download | forums-8af7d225ef481cd26e6fd7862847183d25727117.tar forums-8af7d225ef481cd26e6fd7862847183d25727117.tar.gz forums-8af7d225ef481cd26e6fd7862847183d25727117.tar.bz2 forums-8af7d225ef481cd26e6fd7862847183d25727117.tar.xz forums-8af7d225ef481cd26e6fd7862847183d25727117.zip |
[feature/events] Change to use the new method of adding events
PHPBB3-9550
Diffstat (limited to 'phpBB/includes/ucp/ucp_zebra.php')
-rw-r--r-- | phpBB/includes/ucp/ucp_zebra.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/phpBB/includes/ucp/ucp_zebra.php b/phpBB/includes/ucp/ucp_zebra.php index f8012fdcdf..a2eb5dbdaa 100644 --- a/phpBB/includes/ucp/ucp_zebra.php +++ b/phpBB/includes/ucp/ucp_zebra.php @@ -55,9 +55,7 @@ class ucp_zebra if (!empty($data['usernames'])) { $vars = array('data'); - $event = new phpbb_event_data(compact($vars)); - $phpbb_dispatcher->dispatch('core.ucp_zebra_remove', $event); - extract($event->get_data_filtered($vars)); + extract($phpbb_dispatcher->trigger_event('core.ucp_zebra_remove', compact($vars), $vars)); $sql = 'DELETE FROM ' . ZEBRA_TABLE . ' WHERE user_id = ' . $user->data['user_id'] . ' @@ -192,9 +190,7 @@ class ucp_zebra } $vars = array('mode', 'sql_ary'); - $event = new phpbb_event_data(compact($vars)); - $phpbb_dispatcher->dispatch('core.ucp_zebra_add', $event); - extract($event->get_data_filtered($vars)); + extract($phpbb_dispatcher->trigger_event('core.ucp_zebra_add', compact($vars), $vars)); $db->sql_multi_insert(ZEBRA_TABLE, $sql_ary); |