aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-29 21:04:32 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-29 21:04:32 +0000
commit93388a56331bcd34ad738ec2d2ba4ef3a826de2e (patch)
tree30c344bad2228ec37a21aadc9d02423d594ef4b5
parent30caa93f4d668cad70c903d835c6d1b6a6f6953e (diff)
downloadelgg-93388a56331bcd34ad738ec2d2ba4ef3a826de2e.tar.gz
elgg-93388a56331bcd34ad738ec2d2ba4ef3a826de2e.tar.bz2
Refs #1553 - removed all hard coded profile urls from core
git-svn-id: http://code.elgg.org/elgg/trunk@7756 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--mod/messages/views/default/messages/forms/send.php2
-rw-r--r--mod/messages/views/default/messages/messages.php4
-rw-r--r--views/foaf/user/default.php2
3 files changed, 4 insertions, 4 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>
diff --git a/views/foaf/user/default.php b/views/foaf/user/default.php
index 3be763a73..8d059bc6b 100644
--- a/views/foaf/user/default.php
+++ b/views/foaf/user/default.php
@@ -15,7 +15,7 @@ foreach ($friends as $friend) {
<foaf:Person>
<foaf:nick><?php echo $friend->username; ?></foaf:nick>
<foaf:name><?php echo $friend->name; ?></foaf:name>
- <rdfs:seeAlso rdf:resource="<?php echo elgg_get_site_url() . "pg/profile/" . $friend->username . "?view=foaf" ?>" />
+ <rdfs:seeAlso rdf:resource="<?php echo $friend->getURL() . "?view=foaf" ?>" />
</foaf:Person>
</foaf:knows>