diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-20 08:18:49 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-20 08:18:49 +0000 |
commit | 1e762e2f0cd14586a17e3697bb9a06883d0861b6 (patch) | |
tree | 05e76a3fcbef95a69ac50942afab1f815d4ad928 /mod/messageboard/actions | |
parent | 468f0f9406c22a54a109028131d5f7cb56bd0f4e (diff) | |
download | elgg-1e762e2f0cd14586a17e3697bb9a06883d0861b6.tar.gz elgg-1e762e2f0cd14586a17e3697bb9a06883d0861b6.tar.bz2 |
Fixes #2357: messageboard post action redirects to referrer
git-svn-id: http://code.elgg.org/elgg/trunk@7366 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/messageboard/actions')
-rw-r--r-- | mod/messageboard/actions/add.php | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/mod/messageboard/actions/add.php b/mod/messageboard/actions/add.php index b782d73ea..77f638bb1 100644 --- a/mod/messageboard/actions/add.php +++ b/mod/messageboard/actions/add.php @@ -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); |