From f614bb5bf24ca063ab99994776fab9fc54bea4d9 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Tue, 20 May 2008 09:46:31 -0400 Subject: add alt to all images darcs-hash:20080520134631-84dde-249574ec7e16108cf47f3001c2bc726bdc6f8751.gz --- actions/avatar.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'actions/avatar.php') diff --git a/actions/avatar.php b/actions/avatar.php index 00b7ea6c0..53595af12 100644 --- a/actions/avatar.php +++ b/actions/avatar.php @@ -36,7 +36,8 @@ class AvatarAction extends SettingsAction { common_element('img', array('src' => $original->url, 'class' => 'avatar original', 'width' => $original->width, - 'height' => $original->height)); + 'height' => $original->height, + 'alt' => $user->nickname)); } $avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE); @@ -45,7 +46,8 @@ class AvatarAction extends SettingsAction { common_element('img', array('src' => $avatar->url, 'class' => 'avatar profile', 'width' => AVATAR_PROFILE_SIZE, - 'height' => AVATAR_PROFILE_SIZE)); + 'height' => AVATAR_PROFILE_SIZE, + 'alt' => $user->nickname)); } common_element_start('form', array('enctype' => 'multipart/form-data', -- cgit v1.2.3-54-g00ecf