We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 95229bc7 authored by Evan Prodromou's avatar Evan Prodromou

use homepage link attributes method for peopletaglist

parent 98905de6
......@@ -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';
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment