fix $profile in profilelist
darcs-hash:20081121002402-84dde-867316d44fdc6ab363045540174b69297ea2f183.gz
This commit is contained in:
parent
6dac9870bb
commit
a6d63eb499
@ -125,16 +125,16 @@ class ProfileList {
|
|||||||
|
|
||||||
$action = NULL;
|
$action = NULL;
|
||||||
|
|
||||||
if ($user->isSubscribed($profile)) {
|
if ($user->isSubscribed($this->profile)) {
|
||||||
$action = 'subscriptions';
|
$action = 'subscriptions';
|
||||||
} else if (Subscription::pkeyGet(array('subscriber' => $profile->id,
|
} else if (Subscription::pkeyGet(array('subscriber' => $this->profile->id,
|
||||||
'subscribed' => $user->id))) {
|
'subscribed' => $user->id))) {
|
||||||
$action = 'subscribers';
|
$action = 'subscribers';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($action) {
|
if ($action) {
|
||||||
$tags = Profile_tag::getTags($user->id, $profile->id);
|
$tags = Profile_tag::getTags($user->id, $this->profile->id);
|
||||||
|
|
||||||
if ($tags) {
|
if ($tags) {
|
||||||
common_element_start('p', 'subtags');
|
common_element_start('p', 'subtags');
|
||||||
@ -150,7 +150,7 @@ class ProfileList {
|
|||||||
}
|
}
|
||||||
|
|
||||||
common_element('a', array('href' => 'tagother',
|
common_element('a', array('href' => 'tagother',
|
||||||
'id' => $profile->id,
|
'id' => $this->profile->id,
|
||||||
'class' => 'tagother'),
|
'class' => 'tagother'),
|
||||||
_('Tag'));
|
_('Tag'));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user