diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-03-07 17:56:20 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-03-07 17:56:20 +0000 |
commit | 1ba21f9bd8e089eaf8df1005679d5e5e0c87b90a (patch) | |
tree | 5c1c28ebe276fb5c584b2e0199f6b73020ad7c03 /modules | |
parent | 8afee245a2315e5a86d6b2a926cf330ad9ee5faf (diff) | |
download | brdo-1ba21f9bd8e089eaf8df1005679d5e5e0c87b90a.tar.gz brdo-1ba21f9bd8e089eaf8df1005679d5e5e0c87b90a.tar.bz2 |
#734878 by Dave Reid: Fixed [user:name] tokens should be using format_username().
Diffstat (limited to 'modules')
-rw-r--r-- | modules/user/user.tokens.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/user.tokens.inc b/modules/user/user.tokens.inc index baee793be..569dd1cef 100644 --- a/modules/user/user.tokens.inc +++ b/modules/user/user.tokens.inc @@ -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; |