From a13dcbfbd2f47aeae09ec2270d36c1131e28362e Mon Sep 17 00:00:00 2001 From: dave Date: Sun, 22 Nov 2009 12:47:55 +0000 Subject: remove friend action, return user to the place the action was triggered git-svn-id: http://code.elgg.org/elgg/trunk@3699 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/friends/remove.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actions/friends/remove.php b/actions/friends/remove.php index 83dd377e6..9969544da 100644 --- a/actions/friends/remove.php +++ b/actions/friends/remove.php @@ -34,5 +34,5 @@ if (!$errors) { system_message(sprintf(elgg_echo("friends:remove:successful"), $friend->name)); } -// Forward to the user friends page -forward("pg/friends/" . $_SESSION['user']->username . "/"); +// Forward back to the page you made the friend on +forward($_SERVER['HTTP_REFERER']); -- cgit v1.2.3