diff options
author | Cash Costello <cash.costello@gmail.com> | 2011-11-13 16:22:57 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-11-16 19:53:04 -0500 |
commit | 5ae9e93b57bdc6744198538153b84bed4a34e960 (patch) | |
tree | d8314be7c594087d69ef0dcb716ab1255323a758 /engine | |
parent | c75ee6f8807e34d3d9c4c941e6d0e656a5b1b9b3 (diff) | |
download | elgg-5ae9e93b57bdc6744198538153b84bed4a34e960.tar.gz elgg-5ae9e93b57bdc6744198538153b84bed4a34e960.tar.bz2 |
Fixes #4082 adds output/img
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/users.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php index 4072740f9..9cb8ddfa7 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -1476,14 +1476,15 @@ function users_pagesetup() { // topbar if ($viewer) { - - $icon_url = $viewer->getIconURL('topbar'); - $class = 'elgg-border-plain elgg-transition'; - $title = elgg_echo('profile'); elgg_register_menu_item('topbar', array( 'name' => 'profile', 'href' => $viewer->getURL(), - 'text' => "<img src=\"$icon_url\" alt=\"$viewer->name\" title=\"$title\" class=\"$class\" />", + 'text' => elgg_view('output/img', array( + 'src' => $viewer->getIconURL('topbar'), + 'alt' => $viewer->name, + 'title' => elgg_echo('profile'), + 'class' => 'elgg-border-plain elgg-transition', + )), 'priority' => 100, 'link_class' => 'elgg-topbar-avatar', )); |