#734878 by Dave Reid: Fixed [user:name] tokens should be using format_username().

merge-requests/26/head
Angie Byron 2010-03-07 17:56:20 +00:00
parent 8afee245a2
commit 1ba21f9bd8
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ function user_tokens($type, $tokens, array $data = array(), array $options = arr
break;
case 'name':
$name = ($account->uid == 0) ? variable_get('anonymous', t('Anonymous')) : $account->name;
$name = format_username($account);
$replacements[$original] = $sanitize ? filter_xss($name) : $name;
break;