aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-12 09:50:12 -0500
committerCash Costello <cash.costello@gmail.com>2011-11-12 09:50:12 -0500
commit19f9a2ade78ee4522d3775bdba190a636cf79da5 (patch)
tree079a85a63407ad909b1eb6d717530fa5f936692e /mod
parent1674e174c49f365020f66dc778b133e30bc8177b (diff)
downloadelgg-19f9a2ade78ee4522d3775bdba190a636cf79da5.tar.gz
elgg-19f9a2ade78ee4522d3775bdba190a636cf79da5.tar.bz2
removed uses of deprecated function for setting page owner guid
Diffstat (limited to 'mod')
-rw-r--r--mod/groups/actions/groups/edit.php2
-rw-r--r--mod/groups/actions/groups/membership/leave.php2
-rw-r--r--mod/invitefriends/start.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/mod/groups/actions/groups/edit.php b/mod/groups/actions/groups/edit.php
index 27f6e0426..c4cf6667e 100644
--- a/mod/groups/actions/groups/edit.php
+++ b/mod/groups/actions/groups/edit.php
@@ -91,7 +91,7 @@ $group->save();
// group creator needs to be member of new group and river entry created
if ($new_group_flag) {
- set_page_owner($group->guid);
+ elgg_set_page_owner_guid($group->guid);
$group->join($user);
add_to_river('river/group/create', 'create', $user->guid, $group->guid);
}
diff --git a/mod/groups/actions/groups/membership/leave.php b/mod/groups/actions/groups/membership/leave.php
index 390870df1..4f34c7dde 100644
--- a/mod/groups/actions/groups/membership/leave.php
+++ b/mod/groups/actions/groups/membership/leave.php
@@ -17,7 +17,7 @@ if (!$user_guid) {
$group = get_entity($group_guid);
-set_page_owner($group->guid);
+elgg_set_page_owner_guid($group->guid);
if (($user instanceof ElggUser) && ($group instanceof ElggGroup)) {
if ($group->getOwnerGUID() != elgg_get_logged_in_user_guid()) {
diff --git a/mod/invitefriends/start.php b/mod/invitefriends/start.php
index be853f2ce..368f6348a 100644
--- a/mod/invitefriends/start.php
+++ b/mod/invitefriends/start.php
@@ -33,7 +33,7 @@ function invitefriends_page_handler($page) {
gatekeeper();
elgg_set_context('friends');
- set_page_owner(elgg_get_logged_in_user_guid());
+ elgg_set_page_owner_guid(elgg_get_logged_in_user_guid());
$title = elgg_echo('friends:invite');