aboutsummaryrefslogtreecommitdiff
path: root/mod/messages/views/default/object/messages.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/messages/views/default/object/messages.php')
-rw-r--r--mod/messages/views/default/object/messages.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/messages/views/default/object/messages.php b/mod/messages/views/default/object/messages.php
index 9e070455b..70a51bf57 100644
--- a/mod/messages/views/default/object/messages.php
+++ b/mod/messages/views/default/object/messages.php
@@ -19,7 +19,7 @@ if ($full) {
if ($message->toId == elgg_get_page_owner_guid()) {
// received
$user = get_entity($message->fromId);
- $icon = elgg_view('profile/icon', array('entity' => $user, 'size' => 'tiny'));
+ $icon = elgg_view_entity_icon($user, 'tiny');
$user_link = elgg_view('output/url', array(
'href' => "pg/messages/compose?send_to=$user->guid",
'text' => $user->name,
@@ -34,7 +34,7 @@ if ($message->toId == elgg_get_page_owner_guid()) {
} else {
// sent
$user = get_entity($message->toId);
- $icon = elgg_view('profile/icon', array('entity' => $user, 'size' => 'tiny'));
+ $icon = elgg_view_entity_icon($user, 'tiny');
$user_link = elgg_view('output/url', array(
'href' => "pg/messages/compose?send_to=$user->guid",
'text' => elgg_echo('messages:to_user', array($user->name)),