aboutsummaryrefslogtreecommitdiff
path: root/mod/messageboard
diff options
context:
space:
mode:
Diffstat (limited to 'mod/messageboard')
-rw-r--r--mod/messageboard/index.php2
-rw-r--r--mod/messageboard/views/default/messageboard/forms/add.php2
-rw-r--r--mod/messageboard/views/default/widgets/messageboard/view.php4
3 files changed, 4 insertions, 4 deletions
diff --git a/mod/messageboard/index.php b/mod/messageboard/index.php
index 88438bb85..ff661ce9c 100644
--- a/mod/messageboard/index.php
+++ b/mod/messageboard/index.php
@@ -11,7 +11,7 @@
require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
// Get the user who is the owner of the message board
-$entity = get_entity(page_owner());
+$entity = elgg_get_page_owner();
// Get any annotations for their message board
$contents = $entity->getAnnotations('messageboard', 50, 0, 'desc');
diff --git a/mod/messageboard/views/default/messageboard/forms/add.php b/mod/messageboard/views/default/messageboard/forms/add.php
index b26527b06..ec61ebee7 100644
--- a/mod/messageboard/views/default/messageboard/forms/add.php
+++ b/mod/messageboard/views/default/messageboard/forms/add.php
@@ -14,7 +14,7 @@
<textarea name="message_content" value="" class="input_textarea"></textarea><br />
<!-- the page owner, this will be the profile owner -->
- <input type="hidden" name="pageOwner" value="<?php echo page_owner(); ?>" />
+ <input type="hidden" name="pageOwner" value="<?php echo elgg_get_page_owner_guid(); ?>" />
<?php echo elgg_view('input/securitytoken'); ?>
diff --git a/mod/messageboard/views/default/widgets/messageboard/view.php b/mod/messageboard/views/default/widgets/messageboard/view.php
index dde360961..223cbc007 100644
--- a/mod/messageboard/views/default/widgets/messageboard/view.php
+++ b/mod/messageboard/views/default/widgets/messageboard/view.php
@@ -8,7 +8,7 @@
*/
//get the full page owner entity
-$user = get_entity(page_owner());
+$user = elgg_get_page_owner();
//the number of message to display
$num_display = 5;
@@ -46,7 +46,7 @@ if (isloggedin()) {
<textarea name="message_content" class="input_textarea"></textarea>
<!-- the page owner, this will be the profile owner -->
- <input type="hidden" name="pageOwner" value="<?php echo page_owner(); ?>" class="pageOwner" />
+ <input type="hidden" name="pageOwner" value="<?php echo elgg_get_page_owner_guid(); ?>" class="pageOwner" />
<!-- submit button -->
<input type="submit" id="postit" value="<?php echo elgg_echo('messageboard:postit'); ?>">