From e5149d3447ff1da4c1f59ce7c2b2910c02adc8d3 Mon Sep 17 00:00:00 2001 From: dave Date: Sun, 22 Nov 2009 12:41:38 +0000 Subject: 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 --- actions/friends/add.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actions') 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']); -- cgit v1.2.3