aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/relationships.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/relationships.php b/engine/lib/relationships.php
index c67596837..f813cacba 100644
--- a/engine/lib/relationships.php
+++ b/engine/lib/relationships.php
@@ -1057,7 +1057,7 @@ function relationship_notification_hook($event, $object_type, $object) {
// Notify target user
return notify_user($object->guid_two, $object->guid_one, sprintf(elgg_echo('friend:newfriend:subject'), $user_one->name),
- sprintf(elgg_echo("friend:newfriend:body"), $user_one->name, $CONFIG->site->url . "pg/profile/" . $user_one->username)
+ sprintf(elgg_echo("friend:newfriend:body"), $user_one->name, $user_one->getURL())
);
}
}