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/forms/add.php2
-rw-r--r--mod/messageboard/views/default/widgets/messageboard/view.php4
2 files changed, 3 insertions, 3 deletions
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'); ?>">