]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Changed logged in user to contextual user as per Steve Clays fix for admin editing...
authorMatt Beckett <beck24@gmail.com>
Thu, 28 Jun 2012 03:13:07 +0000 (21:13 -0600)
committerMatt Beckett <beck24@gmail.com>
Thu, 28 Jun 2012 03:13:07 +0000 (21:13 -0600)
mod/notifications/views/default/notifications/subscriptions/collections.php

index e48302629ed9d7e7ece6021c5098dd585792e0f6..8ce77c4b2115d3ce52ab66709f7b8a92e15cc5e5 100644 (file)
@@ -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);
                                        }