mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 03:54:10 +01:00
fix the no_profile one called after another mode with the same user_id and guest_username
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9160 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
41ad04c155
commit
10da18e829
@ -1169,8 +1169,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 ($mode == 'no_profile')
|
||||
{
|
||||
$tpl = (!$_profile_cache[$cache_key][$mode]['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);
|
||||
$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]['colour'], $_profile_cache[$cache_key]['username']), $tpl);
|
||||
}
|
||||
|
||||
return $_profile_cache[$cache_key][$mode];
|
||||
|
Loading…
x
Reference in New Issue
Block a user