]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
remove friend action, return user to the place the action was triggered
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 22 Nov 2009 12:47:55 +0000 (12:47 +0000)
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 22 Nov 2009 12:47:55 +0000 (12:47 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3699 36083f99-b078-4883-b0ff-0f9b5a30f544

actions/friends/remove.php

index 83dd377e60c80b9cf1c3f1ad7003eca61eb50d2e..9969544da53a1b52270db9d3dd7af6ceb7ed1855 100644 (file)
@@ -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']);