diff options
Diffstat (limited to 'mod/messages/views')
-rw-r--r-- | mod/messages/views/default/messages/forms/send.php | 2 | ||||
-rw-r--r-- | mod/messages/views/default/messages/messages.php | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/mod/messages/views/default/messages/forms/send.php b/mod/messages/views/default/messages/forms/send.php index 7707dab82..71705bf18 100644 --- a/mod/messages/views/default/messages/forms/send.php +++ b/mod/messages/views/default/messages/forms/send.php @@ -34,7 +34,7 @@ unset($_SESSION['msg_contents']); echo "<div class='entity-listing messages clearfix'><div class='entity-listing-icon'>".elgg_view("profile/icon",array('entity' => $user, 'size' => 'tiny'))."</div>"; //draw it - echo "<div class='entity-listing-info'>".elgg_echo("messages:to").": <a href='".elgg_get_site_url()."pg/profile/".$user->username."'>".$user->name."</a>"; + echo "<div class='entity-listing-info'>".elgg_echo("messages:to").": <a href='" . $user->getURL() . "'>".$user->name."</a>"; //set the hidden input field to the recipients guid echo "<input type='hidden' name='send_to' value=\"{$send_to}\" />"; echo "</div></div>"; diff --git a/mod/messages/views/default/messages/messages.php b/mod/messages/views/default/messages/messages.php index 4567256b6..97036f9b0 100644 --- a/mod/messages/views/default/messages/messages.php +++ b/mod/messages/views/default/messages/messages.php @@ -64,11 +64,11 @@ if (isloggedin()) //get an instance of the user who the message has been sent to so we can access the name and icon $user_object = get_entity($vars['entity']->toId); $message_icon = elgg_view("profile/icon",array('entity' => $user_object, 'size' => 'tiny')); - $message_owner = elgg_echo('messages:to').": <a href='".elgg_get_site_url()."pg/profile/".$user_object->username."'>".$user_object->name."</a>"; + $message_owner = elgg_echo('messages:to').": <a href='" . $user_object->getURL() . "'>".$user_object->name."</a>"; }else{ $user_object = get_entity($vars['entity']->fromId); $message_icon = elgg_view("profile/icon",array('entity' => $user_object, 'size' => 'tiny')); - $message_owner = elgg_echo('messages:from').": <a href='".elgg_get_site_url()."pg/profile/".$user_object->username."'>".get_entity($vars['entity']->fromId)->name."</a>"; + $message_owner = elgg_echo('messages:from').": <a href='". $user_object->getURL() ."'>".get_entity($vars['entity']->fromId)->name."</a>"; } ?> <div class="entity-listing-icon"><?php echo $message_icon ?></div> |