Skip to content
This repository
Browse code

removed uses of deprecated function for setting page owner guid

  • Loading branch information...
commit ec13919094145765bed8ad775d0c75598bb107ca 1 parent 2f24f33
Cash Costello cash authored
4 engine/lib/users.php
@@ -1088,14 +1088,14 @@ function collections_page_handler($page_elements) {
1088 1088 $base = elgg_get_config('path');
1089 1089 if (isset($page_elements[0])) {
1090 1090 if ($page_elements[0] == "add") {
1091   - set_page_owner(elgg_get_logged_in_user_guid());
  1091 + elgg_set_page_owner_guid(elgg_get_logged_in_user_guid());
1092 1092 collections_submenu_items();
1093 1093 require_once "{$base}pages/friends/collections/add.php";
1094 1094 return true;
1095 1095 } else {
1096 1096 $user = get_user_by_username($page_elements[0]);
1097 1097 if ($user) {
1098   - set_page_owner($user->getGUID());
  1098 + elgg_set_page_owner_guid($user->getGUID());
1099 1099 if (elgg_get_logged_in_user_guid() == elgg_get_page_owner_guid()) {
1100 1100 collections_submenu_items();
1101 1101 }
2  mod/groups/actions/groups/edit.php
@@ -91,7 +91,7 @@ function profile_array_decoder(&$v) {
91 91
92 92 // group creator needs to be member of new group and river entry created
93 93 if ($new_group_flag) {
94   - set_page_owner($group->guid);
  94 + elgg_set_page_owner_guid($group->guid);
95 95 $group->join($user);
96 96 add_to_river('river/group/create', 'create', $user->guid, $group->guid);
97 97 }
2  mod/groups/actions/groups/membership/leave.php
@@ -17,7 +17,7 @@
17 17
18 18 $group = get_entity($group_guid);
19 19
20   -set_page_owner($group->guid);
  20 +elgg_set_page_owner_guid($group->guid);
21 21
22 22 if (($user instanceof ElggUser) && ($group instanceof ElggGroup)) {
23 23 if ($group->getOwnerGUID() != elgg_get_logged_in_user_guid()) {
2  mod/invitefriends/start.php
@@ -33,7 +33,7 @@ function invitefriends_page_handler($page) {
33 33 gatekeeper();
34 34
35 35 elgg_set_context('friends');
36   - set_page_owner(elgg_get_logged_in_user_guid());
  36 + elgg_set_page_owner_guid(elgg_get_logged_in_user_guid());
37 37
38 38 $title = elgg_echo('friends:invite');
39 39
4 pages/entities/index.php
@@ -25,9 +25,9 @@
25 25 // Get the entity, if possible
26 26 if ($entity = get_entity($guid)) {
27 27 if ($entity->container_guid) {
28   - set_page_owner($entity->container_guid);
  28 + elgg_set_page_owner_guid($entity->container_guid);
29 29 } else {
30   - set_page_owner($entity->owner_guid);
  30 + elgg_set_page_owner_guid($entity->owner_guid);
31 31 }
32 32
33 33 // Set the body to be the full view of the entity, and the title to be its title
2  pages/settings/account.php
@@ -11,7 +11,7 @@
11 11
12 12 // Make sure we don't open a security hole ...
13 13 if ((!elgg_get_page_owner_entity()) || (!elgg_get_page_owner_entity()->canEdit())) {
14   - set_page_owner(elgg_get_logged_in_user_guid());
  14 + elgg_set_page_owner_guid(elgg_get_logged_in_user_guid());
15 15 }
16 16
17 17 $title = elgg_echo('usersettings:user');
2  pages/settings/statistics.php
@@ -11,7 +11,7 @@
11 11
12 12 // Make sure we don't open a security hole ...
13 13 if ((!elgg_get_page_owner_entity()) || (!elgg_get_page_owner_entity()->canEdit())) {
14   - set_page_owner(elgg_get_logged_in_user_guid());
  14 + elgg_set_page_owner_guid(elgg_get_logged_in_user_guid());
15 15 }
16 16
17 17 $title = elgg_echo("usersettings:statistics");

0 comments on commit ec13919

Please sign in to comment.
Something went wrong with that request. Please try again.