summaryrefslogtreecommitdiff
path: root/lib/noticelist.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-03-30 11:11:33 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-03-30 11:11:33 -0400
commit7b02d9d2e14153afd989f7373f3453b9bec3c2a0 (patch)
treec96ab52f879e3ebefa84c9d87a0e5854136c8022 /lib/noticelist.php
parent73fbf6580045939bfe9276820476be01d72c0687 (diff)
parenta68836acb4c43500dbff89be1faec19969bc34c2 (diff)
Merge branch 'master' into 0.7.x
Diffstat (limited to 'lib/noticelist.php')
-rw-r--r--lib/noticelist.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php
index 6af301839..4182d8808 100644
--- a/lib/noticelist.php
+++ b/lib/noticelist.php
@@ -258,8 +258,12 @@ class NoticeListItem extends Widget
function showAuthor()
{
$this->out->elementStart('span', 'vcard author');
- $this->out->elementStart('a', array('href' => $this->profile->profileurl,
- 'class' => 'url'));
+ $attrs = array('href' => $this->profile->profileurl,
+ 'class' => 'url');
+ if (!empty($this->profile->fullname)) {
+ $attrs['title'] = $this->profile->fullname . ' (' . $this->profile->nickname . ') ';
+ }
+ $this->out->elementStart('a', $attrs);
$this->showAvatar();
$this->showNickname();
$this->out->elementEnd('a');