1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-01 03:54:56 +02:00

[ticket/15886] Add @html doc for group/user strings

PHPBB3-15886
This commit is contained in:
mrgoldy 2019-03-09 10:30:19 +01:00
parent 214cf2c011
commit 479201a3a1
2 changed files with 2 additions and 0 deletions

View File

@ -1501,6 +1501,7 @@ function get_username_string($mode, $user_id, $username, $username_colour = '',
{
global $phpbb_root_path, $phpEx;
/** @html User name strings for usage in the template */
$_profile_cache['base_url'] = append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=viewprofile&u={USER_ID}');
$_profile_cache['tpl_noprofile'] = '<span class="username">{USERNAME}</span>';
$_profile_cache['tpl_noprofile_colour'] = '<span style="color: {USERNAME_COLOUR};" class="username-coloured">{USERNAME}</span>';

View File

@ -73,6 +73,7 @@ class helper
$this->phpbb_root_path = $path_helper->get_phpbb_root_path();
/** @html Group name strings for usage in the template */
$this->name_strings = array(
'base_url' => "{$path_helper->get_phpbb_root_path()}memberlist.{$path_helper->get_php_ext()}?mode=group&amp;g={GROUP_ID}",
'tpl_noprofile' => '<span class="username">{GROUP_NAME}</span>',