summaryrefslogtreecommitdiff
path: root/actions/subscriptions.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/subscriptions.php')
-rw-r--r--actions/subscriptions.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/actions/subscriptions.php b/actions/subscriptions.php
index 669502939..ee073d126 100644
--- a/actions/subscriptions.php
+++ b/actions/subscriptions.php
@@ -59,15 +59,19 @@ class SubscriptionsAction extends Action {
common_element_start('div', 'row');
}
- common_element_start('a', array('title' => $subs->fullname ||
- $subs->nickname,
+ common_element_start('a', array('title' => ($subs->fullname) ?
+ $subs->fullname :
+ $subs->nickname,
'href' => $subs->profileurl,
'class' => 'subscription'));
$avatar = $subs->getAvatar(AVATAR_STREAM_SIZE);
common_element('img', array('src' => (($avatar) ? $avatar->url : DEFAULT_STREAM_AVATAR),
'width' => AVATAR_STREAM_SIZE,
'height' => AVATAR_STREAM_SIZE,
- 'class' => 'avatar stream'));
+ 'class' => 'avatar stream',
+ 'alt' => ($subs->fullname) ?
+ $subs->fullname :
+ $subs->nickname));
common_element_end('a');
# XXX: subscribe form here