aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}