aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-07-28 16:12:05 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-08-01 10:18:53 +0200
commit0ebe1f876452edbf2daeaf1e11bfe0b776fdc8af (patch)
tree9b24ad8f7c5087c7b64ac8553c0819ee578990a5 /phpBB/viewonline.php
parent[feature/php-events] Add docs and fix naming of core.viewonline_modify_sql (diff)
downloadphpbb-0ebe1f876452edbf2daeaf1e11bfe0b776fdc8af.tar.gz
phpbb-0ebe1f876452edbf2daeaf1e11bfe0b776fdc8af.tar.bz2
phpbb-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.php12
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;
}