]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
when friending another user, return to the page you carried out the action
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 22 Nov 2009 12:41:38 +0000 (12:41 +0000)
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 22 Nov 2009 12:41:38 +0000 (12:41 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3698 36083f99-b078-4883-b0ff-0f9b5a30f544

actions/friends/add.php

index f58d49b8845342c2cce5506c4a78b0c4513bedb8..3698f5887481509cda5548780d4114e7e43fea4e 100644 (file)
@@ -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']);