diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2012-07-28 16:12:05 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2012-08-01 10:18:53 +0200 |
commit | 0ebe1f876452edbf2daeaf1e11bfe0b776fdc8af (patch) | |
tree | 9b24ad8f7c5087c7b64ac8553c0819ee578990a5 /phpBB/viewonline.php | |
parent | 97f50c9771fb331d131695db9e3e0f7deedb18be (diff) | |
download | forums-0ebe1f876452edbf2daeaf1e11bfe0b776fdc8af.tar forums-0ebe1f876452edbf2daeaf1e11bfe0b776fdc8af.tar.gz forums-0ebe1f876452edbf2daeaf1e11bfe0b776fdc8af.tar.bz2 forums-0ebe1f876452edbf2daeaf1e11bfe0b776fdc8af.tar.xz forums-0ebe1f876452edbf2daeaf1e11bfe0b776fdc8af.zip |
[feature/php-events] Fix docs and naming of core.viewonline_override_location
PHPBB3-9550
Diffstat (limited to 'phpBB/viewonline.php')
-rw-r--r-- | phpBB/viewonline.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/phpBB/viewonline.php b/phpBB/viewonline.php index 32ea23c182..193fa61dd7 100644 --- a/phpBB/viewonline.php +++ b/phpBB/viewonline.php @@ -335,8 +335,18 @@ while ($row = $db->sql_fetchrow($result)) $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_location', compact($vars))); + extract($phpbb_dispatcher->trigger_event('core.viewonline_override_location', compact($vars))); break; } |