]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix $profile in profilelist
authorEvan Prodromou <evan@prodromou.name>
Fri, 21 Nov 2008 00:24:02 +0000 (19:24 -0500)
committerEvan Prodromou <evan@prodromou.name>
Fri, 21 Nov 2008 00:24:02 +0000 (19:24 -0500)
darcs-hash:20081121002402-84dde-867316d44fdc6ab363045540174b69297ea2f183.gz

lib/profilelist.php

index 8c7f2abd7b459c71ac3426a0fcb20312b93df46a..a0cda1da4f2cd24a39840f69728c887cff5373dc 100644 (file)
@@ -125,16 +125,16 @@ class ProfileList {
 
                $action = NULL;
                
-               if ($user->isSubscribed($profile)) {
+               if ($user->isSubscribed($this->profile)) {
                        $action = 'subscriptions';
-               } else if (Subscription::pkeyGet(array('subscriber' => $profile->id,
+               } else if (Subscription::pkeyGet(array('subscriber' => $this->profile->id,
                                                                                           'subscribed' => $user->id))) {
                        $action = 'subscribers';
                }
 
 
                if ($action) {
-                       $tags = Profile_tag::getTags($user->id, $profile->id);
+                       $tags = Profile_tag::getTags($user->id, $this->profile->id);
 
                        if ($tags) {
                                common_element_start('p', 'subtags');
@@ -150,7 +150,7 @@ class ProfileList {
                        }
                        
                        common_element('a', array('href' => 'tagother',
-                                                                         'id' => $profile->id,
+                                                                         'id' => $this->profile->id,
                                                                          'class' => 'tagother'),
                                                   _('Tag'));
                }