aboutsummaryrefslogtreecommitdiff
path: root/mod/messageboard/actions
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-20 08:18:49 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-20 08:18:49 +0000
commit1e762e2f0cd14586a17e3697bb9a06883d0861b6 (patch)
tree05e76a3fcbef95a69ac50942afab1f815d4ad928 /mod/messageboard/actions
parent468f0f9406c22a54a109028131d5f7cb56bd0f4e (diff)
downloadelgg-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.php12
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);