]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #1553: Corrected profile link in friending notification.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 26 Feb 2010 20:20:14 +0000 (20:20 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 26 Feb 2010 20:20:14 +0000 (20:20 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3974 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/relationships.php

index c67596837e8cf54a9cf68a86bd111f29c7383f4c..f813cacbadf401d0ee31b4f3de07e050956eff7f 100644 (file)
@@ -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())
                );
        }
 }