diff options
-rw-r--r-- | actions/friends/add.php | 4 |
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']); |