diff options
Diffstat (limited to 'mod/pages/views')
-rw-r--r-- | mod/pages/views/default/forms/pages/edit.php | 4 | ||||
-rw-r--r-- | mod/pages/views/default/pages/groupprofile_pages.php | 2 | ||||
-rw-r--r-- | mod/pages/views/default/widgets/pages/view.php | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/mod/pages/views/default/forms/pages/edit.php b/mod/pages/views/default/forms/pages/edit.php index bdd721b82..0d066bf80 100644 --- a/mod/pages/views/default/forms/pages/edit.php +++ b/mod/pages/views/default/forms/pages/edit.php @@ -8,7 +8,7 @@ $parent_guid = get_input('parent_guid'); $container_guid = get_input('container_guid'); if (!$container_guid) { - $container_guid = page_owner(); + $container_guid = elgg_get_page_owner_guid(); } $new_page = false; @@ -86,7 +86,7 @@ if ($container_guid) { } ?> <input type="hidden" name="parent_guid" value="<?php if (!$new_page) echo $vars['entity']->parent_guid; else echo $parent_guid; ?>" /> - <input type="hidden" name="owner_guid" value="<?php if (!$new_page) echo $vars['entity']->owner_guid; else echo page_owner(); ?>" /> + <input type="hidden" name="owner_guid" value="<?php if (!$new_page) echo $vars['entity']->owner_guid; else echo elgg_get_page_owner_guid(); ?>" /> <input type="submit" class="submit_button" value="<?php echo elgg_echo("save"); ?>" /> </p> diff --git a/mod/pages/views/default/pages/groupprofile_pages.php b/mod/pages/views/default/pages/groupprofile_pages.php index 17c1d87ed..8069cdd8b 100644 --- a/mod/pages/views/default/pages/groupprofile_pages.php +++ b/mod/pages/views/default/pages/groupprofile_pages.php @@ -13,7 +13,7 @@ if ($vars['entity']->pages_enable != 'no') { <h2><?php echo elgg_echo("pages:groupprofile"); ?></h2> <?php - $objects = elgg_list_entities(array('types' => 'object', 'subtypes' => 'page_top', 'container_guid' => page_owner(), 'limit' => 5, 'full_view' => FALSE)); + $objects = elgg_list_entities(array('types' => 'object', 'subtypes' => 'page_top', 'container_guid' => elgg_get_page_owner_guid(), 'limit' => 5, 'full_view' => FALSE)); if($objects) echo $objects; diff --git a/mod/pages/views/default/widgets/pages/view.php b/mod/pages/views/default/widgets/pages/view.php index 9d5a89aea..d51fd008a 100644 --- a/mod/pages/views/default/widgets/pages/view.php +++ b/mod/pages/views/default/widgets/pages/view.php @@ -17,10 +17,10 @@ if (!$num_display) { $num_display = 4; } -$pages = elgg_list_entities(array('types' => 'object', 'subtypes' => 'page_top', 'container_guid' => page_owner(), 'limit' => $num_display, 'full_view' => FALSE)); +$pages = elgg_list_entities(array('types' => 'object', 'subtypes' => 'page_top', 'container_guid' => elgg_get_page_owner_guid(), 'limit' => $num_display, 'full_view' => FALSE)); if ($pages) { - $pagesurl = $vars['url'] . "pg/pages/owned/" . page_owner_entity()->username; + $pagesurl = $vars['url'] . "pg/pages/owned/" . elgg_get_page_owner()->username; $pages .= "<div class=\"pages_widget_singleitem_more\"><a href=\"{$pagesurl}\">" . elgg_echo('pages:more') . "</a></div>"; } |