From b28eb7037cd8e6229d529287cce0f1b6246cad7f Mon Sep 17 00:00:00 2001
From: Bob Vincent <bob@rightapp.com>
Date: Sat, 8 Sep 2012 08:05:27 -0400
Subject: [PATCH] Issue #1778722 by pillarsdotnet: Use format_username()
 instead of $GLOBALS[user]->name

---
 admin_menu.inc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/admin_menu.inc b/admin_menu.inc
index 6de7042..f4d002c 100644
--- a/admin_menu.inc
+++ b/admin_menu.inc
@@ -540,7 +540,7 @@ function admin_menu_links_user() {
     '#href' => (user_access('administer users') ? 'admin/people/people' : 'user'),
   );
   $links['account'] = array(
-    '#title' => $GLOBALS['user']->name,
+    '#title' => check_plain(format_username($GLOBALS['user'])),
     '#weight' => -99,
     '#attributes' => array('class' => array('admin-menu-action', 'admin-menu-account')),
     '#href' => 'user/' . $GLOBALS['user']->uid,
-- 
1.7.10

