aboutsummaryrefslogtreecommitdiff
path: root/mod/notifications/views/default
diff options
context:
space:
mode:
authorMatt Beckett <beck24@gmail.com>2012-06-27 21:13:07 -0600
committerMatt Beckett <beck24@gmail.com>2012-06-27 21:13:07 -0600
commit15eb56a26007a74f3f73354b0fa5bd221e16a618 (patch)
tree75a4876b851ea74ffa91e63bbaff526be5160878 /mod/notifications/views/default
parentce0348c9e491e4539923f8befa13841384280172 (diff)
downloadelgg-15eb56a26007a74f3f73354b0fa5bd221e16a618.tar.gz
elgg-15eb56a26007a74f3f73354b0fa5bd221e16a618.tar.bz2
Changed logged in user to contextual user as per Steve Clays fix for admin editing user notifications
Diffstat (limited to 'mod/notifications/views/default')
-rw-r--r--mod/notifications/views/default/notifications/subscriptions/collections.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/notifications/views/default/notifications/subscriptions/collections.php b/mod/notifications/views/default/notifications/subscriptions/collections.php
index e48302629..8ce77c4b2 100644
--- a/mod/notifications/views/default/notifications/subscriptions/collections.php
+++ b/mod/notifications/views/default/notifications/subscriptions/collections.php
@@ -100,7 +100,7 @@ END;
</tr>
<?php
- if ($collections = get_user_access_collections(elgg_get_logged_in_user_guid())) {
+ if ($collections = get_user_access_collections($user->guid)) {
foreach($collections as $collection) {
$members = get_members_of_access_collection($collection->id, true);
$memberno = 0;
@@ -123,7 +123,7 @@ END;
$i = 0;
foreach($NOTIFICATION_HANDLERS as $method => $foo) {
$metaname = 'collections_notifications_preferences_' . $method;
- if ($collections_preferences = elgg_get_logged_in_user_entity()->$metaname) {
+ if ($collections_preferences = $user->$metaname) {
if (!empty($collections_preferences) && !is_array($collections_preferences)) {
$collections_preferences = array($collections_preferences);
}