From 0cc190deb5ec0c9608255192c042f573fd834019 Mon Sep 17 00:00:00 2001 From: cash Date: Wed, 26 Jan 2011 12:43:28 +0000 Subject: changed elgg_get_page_owner() to elgg_get_page_owner_entity() to be more consistent git-svn-id: http://code.elgg.org/elgg/trunk@7943 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/pages/views/default/pages/group_module.php | 2 +- mod/pages/views/default/pages/sidebar/navigation.php | 2 +- mod/pages/views/default/widgets/pages/content.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'mod/pages/views/default') diff --git a/mod/pages/views/default/pages/group_module.php b/mod/pages/views/default/pages/group_module.php index 2e6b7f6ec..87845e224 100644 --- a/mod/pages/views/default/pages/group_module.php +++ b/mod/pages/views/default/pages/group_module.php @@ -6,7 +6,7 @@ */ -$group = elgg_get_page_owner(); +$group = elgg_get_page_owner_entity(); if ($group->pages_enable == "no") { return true; diff --git a/mod/pages/views/default/pages/sidebar/navigation.php b/mod/pages/views/default/pages/sidebar/navigation.php index 806fc2f52..141cf8a64 100644 --- a/mod/pages/views/default/pages/sidebar/navigation.php +++ b/mod/pages/views/default/pages/sidebar/navigation.php @@ -12,7 +12,7 @@ if ($selected_page) { $title = elgg_echo('pages:navigation'); -pages_register_navigation_tree(elgg_get_page_owner()); +pages_register_navigation_tree(elgg_get_page_owner_entity()); $content = elgg_view_menu('pages_nav', array('class' => 'pages-nav')); if (!$content) { diff --git a/mod/pages/views/default/widgets/pages/content.php b/mod/pages/views/default/widgets/pages/content.php index 63a2d8e7e..eea482273 100644 --- a/mod/pages/views/default/widgets/pages/content.php +++ b/mod/pages/views/default/widgets/pages/content.php @@ -20,7 +20,7 @@ $content = elgg_list_entities($options); echo $content; if ($content) { - $url = "pg/pages/owner/" . elgg_get_page_owner()->username; + $url = "pg/pages/owner/" . elgg_get_page_owner_entity()->username; $more_link = elgg_view('output/url', array( 'href' => $url, 'text' => elgg_echo('pages:more'), -- cgit v1.2.3