aboutsummaryrefslogtreecommitdiff
path: root/mod/messageboard/views
diff options
context:
space:
mode:
Diffstat (limited to 'mod/messageboard/views')
-rw-r--r--mod/messageboard/views/default/messageboard/messageboard_content.php2
-rw-r--r--mod/messageboard/views/default/widgets/messageboard/content.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/mod/messageboard/views/default/messageboard/messageboard_content.php b/mod/messageboard/views/default/messageboard/messageboard_content.php
index b6307f33b..abd81d0ad 100644
--- a/mod/messageboard/views/default/messageboard/messageboard_content.php
+++ b/mod/messageboard/views/default/messageboard/messageboard_content.php
@@ -43,7 +43,7 @@
<?php
// If the message being looked at is owned by the current user, don't show the reply
// Also do not show if the user is not logged in
- if (isloggedin() && $vars['annotation']->owner_guid != get_loggedin_userid()) {
+ if (elgg_is_logged_in() && $vars['annotation']->owner_guid != elgg_get_logged_in_user_guid()) {
//get the message owner
$msg_owner = get_entity($vars['annotation']->owner_guid);
diff --git a/mod/messageboard/views/default/widgets/messageboard/content.php b/mod/messageboard/views/default/widgets/messageboard/content.php
index 71315a526..a81a99b44 100644
--- a/mod/messageboard/views/default/widgets/messageboard/content.php
+++ b/mod/messageboard/views/default/widgets/messageboard/content.php
@@ -17,7 +17,7 @@ if (isset($vars['entity']->num_display)) {
}
//Just the loggedin user can post messages
-if (isloggedin()) {
+if (elgg_is_logged_in()) {
?>
<script type="text/javascript">
$(document).ready(function(){
@@ -62,7 +62,7 @@ if (isloggedin()) {
</div><!-- end of mb_input_wrapper div -->
<?php
-} // if(isloggedin())
+} // if(elgg_is_logged_in())
//this for the first time the page loads, grab the latest messages.
$contents = $user->getAnnotations('messageboard', $num_display, 0, 'desc');