diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-09-11 15:17:00 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-09-11 15:17:00 +0000 |
commit | 5e590b9e4e9878a9c4e5c5d14011e3e160697949 (patch) | |
tree | 825047eb60878602c9ea05ce280ea736f7c97fcd /includes | |
parent | 4d95e3d22a4e4a6bb9da95db992c7eba4ae9f267 (diff) | |
download | brdo-5e590b9e4e9878a9c4e5c5d14011e3e160697949.tar.gz brdo-5e590b9e4e9878a9c4e5c5d14011e3e160697949.tar.bz2 |
- Patch #520734 by Everett Zufelt, webernet | Dries, mgifford: theme_feed_icon() could use more meaningful alt text.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/theme.inc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index c908088ff..abb0fd757 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -1840,10 +1840,11 @@ function theme_more_help_link($url) { * The url of the feed. * @param $title * A descriptive title of the feed. - */ + */ function theme_feed_icon($url, $title) { - if ($image = theme('image', 'misc/feed.png', t('Subscribe to %feed-title', array('%feed-title' => $title)))) { - return '<a href="' . check_url($url) . '" class="feed-icon">' . $image . '</a>'; + $text = t('Subscribe to @feed-title', array('@feed-title' => $title)); + if ($image = theme('image', 'misc/feed.png', $text)) { + return '<a href="' . check_url($url) . '" title="' . $text . '" class="feed-icon">' . $image . '</a>'; } } |