aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewonline.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-08-20 10:04:43 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-08-20 10:04:43 +0200
commit7f156c9798ae56746176f3269930a340364b1ca8 (patch)
tree7f1e3ad57614bd115c5d41d10515ec48f41e5a39 /phpBB/viewonline.php
parent64bc658c044451c4808fac3bd5781196c604ac38 (diff)
downloadforums-7f156c9798ae56746176f3269930a340364b1ca8.tar
forums-7f156c9798ae56746176f3269930a340364b1ca8.tar.gz
forums-7f156c9798ae56746176f3269930a340364b1ca8.tar.bz2
forums-7f156c9798ae56746176f3269930a340364b1ca8.tar.xz
forums-7f156c9798ae56746176f3269930a340364b1ca8.zip
[feature/php-events] Fix doc and position of viewonline_overwrite_location
PHPBB3-9550
Diffstat (limited to 'phpBB/viewonline.php')
-rw-r--r--phpBB/viewonline.php26
1 files 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'],