aboutsummaryrefslogtreecommitdiff
path: root/actions/friends
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-22 12:47:55 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-22 12:47:55 +0000
commita13dcbfbd2f47aeae09ec2270d36c1131e28362e (patch)
tree652ce501ba37cde10de076871aa02d941d97dabe /actions/friends
parente5149d3447ff1da4c1f59ce7c2b2910c02adc8d3 (diff)
downloadelgg-a13dcbfbd2f47aeae09ec2270d36c1131e28362e.tar.gz
elgg-a13dcbfbd2f47aeae09ec2270d36c1131e28362e.tar.bz2
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
Diffstat (limited to 'actions/friends')
-rw-r--r--actions/friends/remove.php4
1 files 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']);