mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
fix the no_profile one called after another mode with the same user_id and guest_username
git-svn-id: file:///svn/phpbb/trunk@9161 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
16e8b8271b
commit
4e3d564be6
1 changed files with 2 additions and 2 deletions
|
@ -1165,8 +1165,8 @@ function get_username_string($mode, $user_id, $username, $username_colour = '',
|
||||||
// If the mode is 'no_profile', we simply construct the TPL code due to calls to this mode being very very rare
|
// If the mode is 'no_profile', we simply construct the TPL code due to calls to this mode being very very rare
|
||||||
if ($mode == 'no_profile')
|
if ($mode == 'no_profile')
|
||||||
{
|
{
|
||||||
$tpl = (!$_profile_cache[$cache_key][$mode]['colour']) ? '{USERNAME}' : '<span style="color: {USERNAME_COLOUR};" class="username-coloured">{USERNAME}</span>';
|
$tpl = (!$_profile_cache[$cache_key]['colour']) ? '{USERNAME}' : '<span style="color: {USERNAME_COLOUR};" class="username-coloured">{USERNAME}</span>';
|
||||||
return str_replace(array('{USERNAME_COLOUR}', '{USERNAME}'), array($_profile_cache[$cache_key][$mode]['colour'], $_profile_cache[$cache_key][$mode]['username']), $tpl);
|
return str_replace(array('{USERNAME_COLOUR}', '{USERNAME}'), array($_profile_cache[$cache_key]['colour'], $_profile_cache[$cache_key]['username']), $tpl);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $_profile_cache[$cache_key][$mode];
|
return $_profile_cache[$cache_key][$mode];
|
||||||
|
|
Loading…
Add table
Reference in a new issue