]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #2357: messageboard post action redirects to referrer
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 20 Nov 2010 08:18:49 +0000 (08:18 +0000)
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 20 Nov 2010 08:18:49 +0000 (08:18 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7366 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/messageboard/actions/add.php

index b782d73ea15176e653d593e1b04d198b2c3603c8..77f638bb1d7fd2d7319a8e1e768277ed01ba624c 100644 (file)
@@ -19,18 +19,12 @@ if ($user && !empty($message_content)) {
        } else {
                register_error(elgg_echo("messageboard:failure"));
        }
-
-       //set the url to return the user to the correct message board
-       $url = "pg/messageboard/" . $user->username;
-
+       
 } else {
 
        register_error(elgg_echo("messageboard:blank"));
-
-       //set the url to return the user to the correct message board
-       $url = "pg/messageboard/" . $user->username;
-
+       
 }
 
 // Forward back to the messageboard
-forward($url);
+forward(REFERER);