mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
[feature/php-events] Fix doc and position of viewonline_overwrite_location
PHPBB3-9550
This commit is contained in:
parent
64bc658c04
commit
7f156c9798
1 changed files with 13 additions and 13 deletions
|
@ -334,11 +334,13 @@ while ($row = $db->sql_fetchrow($result))
|
||||||
default:
|
default:
|
||||||
$location = $user->lang['INDEX'];
|
$location = $user->lang['INDEX'];
|
||||||
$location_url = append_sid("{$phpbb_root_path}index.$phpEx");
|
$location_url = append_sid("{$phpbb_root_path}index.$phpEx");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Modify the location name and url which are displayed in the list
|
* Overwrite the location name and URL, which are displayed in the list
|
||||||
*
|
*
|
||||||
* @event core.viewonline_override_location
|
* @event core.viewonline_overwrite_location
|
||||||
* @var array on_page File name and query string
|
* @var array on_page File name and query string
|
||||||
* @var array row Array with the users sql row
|
* @var array row Array with the users sql row
|
||||||
* @var string location Page name to displayed in the list
|
* @var string location Page name to displayed in the list
|
||||||
|
@ -346,9 +348,7 @@ while ($row = $db->sql_fetchrow($result))
|
||||||
* @since 3.1-A1
|
* @since 3.1-A1
|
||||||
*/
|
*/
|
||||||
$vars = array('on_page', 'row', 'location', 'location_url');
|
$vars = array('on_page', 'row', 'location', 'location_url');
|
||||||
extract($phpbb_dispatcher->trigger_event('core.viewonline_override_location', compact($vars)));
|
extract($phpbb_dispatcher->trigger_event('core.viewonline_overwrite_location', compact($vars)));
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
$template->assign_block_vars('user_row', array(
|
$template->assign_block_vars('user_row', array(
|
||||||
'USERNAME' => $row['username'],
|
'USERNAME' => $row['username'],
|
||||||
|
|
Loading…
Add table
Reference in a new issue