From ab09c2001bd9384c4e3c2964c5d1a39a0e91b013 Mon Sep 17 00:00:00 2001 From: Sem Date: Thu, 8 Dec 2011 21:19:02 +0100 Subject: Arranged page to see friend requests. --- actions/friends/remove.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'actions/friends') diff --git a/actions/friends/remove.php b/actions/friends/remove.php index 4ba7bc572..1ad9471b3 100644 --- a/actions/friends/remove.php +++ b/actions/friends/remove.php @@ -4,7 +4,7 @@ $friend = get_entity(sanitize_int(get_input('friend'))); $user = elgg_get_logged_in_user_entity(); if(!elgg_instanceof($friend, 'user')){ - register_error(elgg_echo('friendrequest:remove:failure', array($friend->name))); + register_error(elgg_echo('friends:remove:failure', array($friend->name))); forward(REFERER); } @@ -15,10 +15,10 @@ if(check_entity_relationship($user->guid, "friend", $friend->guid)) { $friend->removeFriend($user->guid); } } catch (Exception $e) { - register_error(elgg_echo('friendrequest:remove:failure', array($friend->name))); + register_error(elgg_echo('friends:remove:failure', array($friend->name))); forward(REFERER); } } -system_message(elgg_echo('friendrequest:remove:successful', array($friend->name))); +system_message(elgg_echo('friends:remove:successful', array($friend->name))); forward(REFERER); -- cgit v1.2.3