diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-10-30 21:48:24 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-10-30 21:48:24 +0000 |
commit | c27eac2d2a970e76a1204757bbe15da8efb2870c (patch) | |
tree | 7f524d3ee95391163293d9f77a945e2915c3e8ac /mod/messageboard | |
parent | f49fdf4e1c80fe5bde922c25bdd6ca0e2c912ddb (diff) | |
download | elgg-c27eac2d2a970e76a1204757bbe15da8efb2870c.tar.gz elgg-c27eac2d2a970e76a1204757bbe15da8efb2870c.tar.bz2 |
Refs #1439: Using new page_owner functions in all of core
git-svn-id: http://code.elgg.org/elgg/trunk@7140 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/messageboard')
-rw-r--r-- | mod/messageboard/index.php | 2 | ||||
-rw-r--r-- | mod/messageboard/views/default/messageboard/forms/add.php | 2 | ||||
-rw-r--r-- | mod/messageboard/views/default/widgets/messageboard/view.php | 4 |
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'); ?>"> |