$this->tag = $this->trimmed('tag');
if (!common_valid_profile_tag($this->tag)) {
- $this->clientError(sprintf(_('Not a valid people tag: %s'),
+ $this->clientError(sprintf(_('Not a valid people tag: %s.'),
$this->tag));
return;
}
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');
+ $aAttrs = parent::linkAttributes();
+
+ if (common_config('nofollow', 'peopletag')) {
+ $aAttrs['rel'] = 'nofollow';
}
+
+ return $aAttrs;
}
}