diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-26 12:43:28 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-01-26 12:43:28 +0000 |
commit | 0cc190deb5ec0c9608255192c042f573fd834019 (patch) | |
tree | 4cd2d31d33109d268ac595140375b604f1399276 /mod/file | |
parent | 5c8493c1456bb656dd4c6448fb0edde7af81b325 (diff) | |
download | elgg-0cc190deb5ec0c9608255192c042f573fd834019.tar.gz elgg-0cc190deb5ec0c9608255192c042f573fd834019.tar.bz2 |
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
Diffstat (limited to 'mod/file')
-rw-r--r-- | mod/file/friends.php | 2 | ||||
-rw-r--r-- | mod/file/index.php | 2 | ||||
-rw-r--r-- | mod/file/search.php | 2 | ||||
-rw-r--r-- | mod/file/upload.php | 2 | ||||
-rw-r--r-- | mod/file/view.php | 2 | ||||
-rw-r--r-- | mod/file/views/default/file/group_module.php | 2 | ||||
-rw-r--r-- | mod/file/views/default/widgets/filerepo/content.php | 2 |
7 files changed, 7 insertions, 7 deletions
diff --git a/mod/file/friends.php b/mod/file/friends.php index 795aa21ce..dada7494e 100644 --- a/mod/file/friends.php +++ b/mod/file/friends.php @@ -5,7 +5,7 @@ * @package ElggFile */ -$owner = elgg_get_page_owner(); +$owner = elgg_get_page_owner_entity(); elgg_push_breadcrumb(elgg_echo('file'), "pg/file/all/"); elgg_push_breadcrumb($owner->name, "pg/file/owner/$owner->username"); diff --git a/mod/file/index.php b/mod/file/index.php index 8f2546ca0..44906d72d 100644 --- a/mod/file/index.php +++ b/mod/file/index.php @@ -10,7 +10,7 @@ elgg_set_page_owner_guid(get_input('guid')); // access check for closed groups group_gatekeeper(); -$owner = elgg_get_page_owner(); +$owner = elgg_get_page_owner_entity(); elgg_push_breadcrumb(elgg_echo('file'), "pg/file/all/"); elgg_push_breadcrumb($owner->name); diff --git a/mod/file/search.php b/mod/file/search.php index 157b5b8b8..b7f82e951 100644 --- a/mod/file/search.php +++ b/mod/file/search.php @@ -12,7 +12,7 @@ $page_owner_guid = get_input('page_owner', null); if ($page_owner_guid) { elgg_set_page_owner_guid($page_owner_guid); } -$owner = elgg_get_page_owner(); +$owner = elgg_get_page_owner_entity(); group_gatekeeper(); diff --git a/mod/file/upload.php b/mod/file/upload.php index 8f10b9d82..f26b1bbee 100644 --- a/mod/file/upload.php +++ b/mod/file/upload.php @@ -8,7 +8,7 @@ elgg_load_library('elgg:file'); elgg_set_page_owner_guid(get_input('guid')); -$owner = elgg_get_page_owner(); +$owner = elgg_get_page_owner_entity(); gatekeeper(); group_gatekeeper(); diff --git a/mod/file/view.php b/mod/file/view.php index ee882f604..72660c406 100644 --- a/mod/file/view.php +++ b/mod/file/view.php @@ -8,7 +8,7 @@ $file = get_entity(get_input('guid')); elgg_set_page_owner_guid($file->getContainerGUID()); -$owner = elgg_get_page_owner(); +$owner = elgg_get_page_owner_entity(); elgg_push_breadcrumb(elgg_echo('file'), 'pg/file/all'); diff --git a/mod/file/views/default/file/group_module.php b/mod/file/views/default/file/group_module.php index e0501709f..8a0318a37 100644 --- a/mod/file/views/default/file/group_module.php +++ b/mod/file/views/default/file/group_module.php @@ -3,7 +3,7 @@ * Group file module */ -$group = elgg_get_page_owner(); +$group = elgg_get_page_owner_entity(); if ($group->file_enable == "no") { return true; diff --git a/mod/file/views/default/widgets/filerepo/content.php b/mod/file/views/default/widgets/filerepo/content.php index d2cd246ae..d3deece56 100644 --- a/mod/file/views/default/widgets/filerepo/content.php +++ b/mod/file/views/default/widgets/filerepo/content.php @@ -21,7 +21,7 @@ $content = elgg_list_entities($options); echo $content; if ($content) { - $url = "pg/file/owner/" . elgg_get_page_owner()->username; + $url = "pg/file/owner/" . elgg_get_page_owner_entity()->username; $more_link = elgg_view('output/url', array( 'href' => $url, 'text' => elgg_echo('file:more'), |