summaryrefslogtreecommitdiff
path: root/lib/profilelist.php
diff options
context:
space:
mode:
authorcsarven <csarven@controlyourself.ca>2008-11-23 21:53:08 -0500
committercsarven <csarven@controlyourself.ca>2008-11-23 21:53:08 -0500
commit079b88a6883331338f9f195fcd6c76a7bcbbd7a6 (patch)
tree3a4a977c7ef5e9e3d85900457a143d32b2514a05 /lib/profilelist.php
parent525b86771866f368a4df9163562fbfe43be76b40 (diff)
include action in tags
darcs-hash:20081124025308-eefa4-b4523d386c1dd36d4856949abba1dc8bd8099da0.gz
Diffstat (limited to 'lib/profilelist.php')
-rw-r--r--lib/profilelist.php17
1 files changed, 8 insertions, 9 deletions
diff --git a/lib/profilelist.php b/lib/profilelist.php
index f8d47f4ed..55d744187 100644
--- a/lib/profilelist.php
+++ b/lib/profilelist.php
@@ -26,10 +26,12 @@ class ProfileList {
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() {
@@ -124,7 +126,7 @@ class ProfileList {
array('id' => $this->profile->id))),
_('Tags'));
} else {
- common_element(_('Tags'));
+ common_text(_('Tags'));
}
common_text(":");
common_element_end('dt');
@@ -133,9 +135,9 @@ class ProfileList {
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');
@@ -150,16 +152,13 @@ class ProfileList {
}
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');