aboutsummaryrefslogtreecommitdiff
path: root/mod/messageboard/actions
diff options
context:
space:
mode:
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);