aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-13 16:22:57 -0500
committerCash Costello <cash.costello@gmail.com>2011-11-13 16:22:57 -0500
commit6483d9d446e7fa50e16823fe20514a45416880e2 (patch)
tree68c5bb2e6a0b7b486e17f1101321323e7894a008 /engine
parent95346209886527207ffd036a58d6fd50572d34fd (diff)
downloadelgg-6483d9d446e7fa50e16823fe20514a45416880e2.tar.gz
elgg-6483d9d446e7fa50e16823fe20514a45416880e2.tar.bz2
Fixes #4082 adds output/img
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/users.php11
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',
));