aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewonline.php
diff options
context:
space:
mode:
authorMichael Cullum <unknownbliss@phpbbdevelopers.net>2012-03-20 11:23:03 +0000
committerJoas Schilling <nickvergessen@gmx.de>2012-08-01 10:18:44 +0200
commit8af7d225ef481cd26e6fd7862847183d25727117 (patch)
tree8347065c186e787aa41eb6b7c7547491268be80a /phpBB/viewonline.php
parentba63df2dce9da69caa31f1f4404b3b79a7f4f75e (diff)
downloadforums-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/viewonline.php')
-rw-r--r--phpBB/viewonline.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/phpBB/viewonline.php b/phpBB/viewonline.php
index 55d663de20..08c02464e5 100644
--- a/phpBB/viewonline.php
+++ b/phpBB/viewonline.php
@@ -134,9 +134,7 @@ $sql_ary = array(
);
$vars = array('sql_ary', 'show_guests');
-$event = new phpbb_event_data(compact($vars));
-$phpbb_dispatcher->dispatch('core.viewonline_get_userdata', $event);
-extract($event->get_data_filtered($vars));
+extract($phpbb_dispatcher->trigger_event('core.viewonline_get_userdata', compact($vars), $vars));
$result = $db->sql_query($db->sql_build_query('SELECT', $sql_ary));
@@ -330,9 +328,7 @@ while ($row = $db->sql_fetchrow($result))
$location_url = append_sid("{$phpbb_root_path}index.$phpEx");
$vars = array('on_page', 'row', 'location', 'location_url');
- $event = new phpbb_event_data(compact($vars));
- $phpbb_dispatcher->dispatch('core.viewonline_location', $event);
- extract($event->get_data_filtered($vars));
+ extract($phpbb_dispatcher->trigger_event('core.viewonline_location', compact($vars), $vars));
break;
}