summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-04-05 11:17:36 -0400
committerEvan Prodromou <evan@status.net>2010-04-05 11:17:36 -0400
commit95229bc7a060bb6289aa9b7950f4e69acd96a1e7 (patch)
treef43474046a7cc4fd4ceaae19c1373b3b8b2ec35e /actions
parent98905de69df7371f7ce010680416525036a1c400 (diff)
use homepage link attributes method for peopletaglist
Diffstat (limited to 'actions')
-rw-r--r--actions/peopletag.php14
1 files changed, 3 insertions, 11 deletions
diff --git a/actions/peopletag.php b/actions/peopletag.php
index af40b9d82..456cc21c4 100644
--- a/actions/peopletag.php
+++ b/actions/peopletag.php
@@ -166,18 +166,10 @@ class PeopleTagListItem extends ProfileListItem
return $aAttrs;
}
- function showHomepage()
+ function homepageAttributes()
{
- if (!empty($this->profile->homepage)) {
- $this->out->text(' ');
- $aAttrs = array('href' => $this->profile->homepage,
- 'class' => 'url');
- if (common_config('nofollow', 'peopletag')) {
- $aAttrs['rel'] = 'nofollow';
- }
- $this->out->elementStart('a', $aAttrs);
- $this->out->raw($this->highlight($this->profile->homepage));
- $this->out->elementEnd('a');
+ if (common_config('nofollow', 'peopletag')) {
+ $aAttrs['rel'] = 'nofollow';
}
}
}