aboutsummaryrefslogtreecommitdiff
path: root/mod/messageboard/actions
diff options
context:
space:
mode:
Diffstat (limited to 'mod/messageboard/actions')
-rw-r--r--mod/messageboard/actions/add.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/messageboard/actions/add.php b/mod/messageboard/actions/add.php
index 77f638bb1..1058482d9 100644
--- a/mod/messageboard/actions/add.php
+++ b/mod/messageboard/actions/add.php
@@ -14,7 +14,7 @@ $user = get_entity($page_owner); // the message board owner's details
// Let's see if we can get a user entity from the specified page_owner
if ($user && !empty($message_content)) {
- if (messageboard_add(get_loggedin_user(), $user, $message_content, $user->access_id)) {
+ if (messageboard_add(elgg_get_logged_in_user_entity(), $user, $message_content, $user->access_id)) {
system_message(elgg_echo("messageboard:posted"));
} else {
register_error(elgg_echo("messageboard:failure"));