aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-22 12:41:38 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-22 12:41:38 +0000
commite5149d3447ff1da4c1f59ce7c2b2910c02adc8d3 (patch)
tree131e4f94da8fc98561d71cd0eb9bee86ac0f4ad9 /actions
parent5d1c4bca07fad26520d5e5f3d2d0958ddd40da77 (diff)
downloadelgg-e5149d3447ff1da4c1f59ce7c2b2910c02adc8d3.tar.gz
elgg-e5149d3447ff1da4c1f59ce7c2b2910c02adc8d3.tar.bz2
when friending another user, return to the page you carried out the action
git-svn-id: http://code.elgg.org/elgg/trunk@3698 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions')
-rw-r--r--actions/friends/add.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/friends/add.php b/actions/friends/add.php
index f58d49b88..3698f5887 100644
--- a/actions/friends/add.php
+++ b/actions/friends/add.php
@@ -33,5 +33,5 @@ if (!$errors){
system_message(sprintf(elgg_echo("friends:add:successful"),$friend->name));
}
-// Forward to the user friends page
-forward("pg/friends/" . $_SESSION['user']->username . "/");
+// Forward back to the page you friended the user on
+forward($_SERVER['HTTP_REFERER']);