From 7f156c9798ae56746176f3269930a340364b1ca8 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 20 Aug 2012 10:04:43 +0200 Subject: [PATCH] [feature/php-events] Fix doc and position of viewonline_overwrite_location PHPBB3-9550 --- phpBB/viewonline.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/phpBB/viewonline.php b/phpBB/viewonline.php index 193fa61dd7..7d587978ed 100644 --- a/phpBB/viewonline.php +++ b/phpBB/viewonline.php @@ -334,22 +334,22 @@ while ($row = $db->sql_fetchrow($result)) default: $location = $user->lang['INDEX']; $location_url = append_sid("{$phpbb_root_path}index.$phpEx"); - - /** - * Modify the location name and url which are displayed in the list - * - * @event core.viewonline_override_location - * @var array on_page File name and query string - * @var array row Array with the users sql row - * @var string location Page name to displayed in the list - * @var string location_url Page url to displayed in the list - * @since 3.1-A1 - */ - $vars = array('on_page', 'row', 'location', 'location_url'); - extract($phpbb_dispatcher->trigger_event('core.viewonline_override_location', compact($vars))); break; } + /** + * Overwrite the location name and URL, which are displayed in the list + * + * @event core.viewonline_overwrite_location + * @var array on_page File name and query string + * @var array row Array with the users sql row + * @var string location Page name to displayed in the list + * @var string location_url Page url to displayed in the list + * @since 3.1-A1 + */ + $vars = array('on_page', 'row', 'location', 'location_url'); + extract($phpbb_dispatcher->trigger_event('core.viewonline_overwrite_location', compact($vars))); + $template->assign_block_vars('user_row', array( 'USERNAME' => $row['username'], 'USERNAME_COLOUR' => $row['user_colour'],