$lim);
if ($display == 'list') {
- $profile_list = new ProfileList($other, $profile);
+ $profile_list = new ProfileList($other, $profile, $this->trimmed('action'));
$cnt = $profile_list->show_list();
} else {
$cnt = $this->icon_list($other);
var $profile = NULL;
var $owner = NULL;
+ var $action = NULL;
- function __construct($profile, $owner=NULL) {
+ function __construct($profile, $owner=NULL, $action=NULL) {
$this->profile = $profile;
$this->owner = $owner;
+ $this->action = $action;
}
function show_list() {
array('id' => $this->profile->id))),
_('Tags'));
} else {
- common_element(_('Tags'));
+ common_text(_('Tags'));
}
common_text(":");
common_element_end('dt');
common_element_start('ul', 'tags xoxo');
foreach ($tags as $tag) {
common_element_start('li');
- common_element('a', array('rel' => "tag",
- 'href' => common_local_url($action,
- array('nickname' => $user->nickname,
+ common_element('a', array('rel' => 'tag',
+ 'href' => common_local_url($this->action,
+ array('nickname' => $this->owner->nickname,
'tag' => $tag))),
$tag);
common_element_end('li');
}
if ($user) {
- $action = NULL;
-
+ $action = NULL;
if ($user->isSubscribed($this->profile)) {
$action = 'subscriptions';
} else if (Subscription::pkeyGet(array('subscriber' => $this->profile->id,
'subscribed' => $user->id))) {
$action = 'subscribers';
}
-
-
}
common_element_end('li');