Index: includes/theme.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/theme.inc,v
retrieving revision 1.480
diff -u -p -r1.480 theme.inc
--- includes/theme.inc	29 Apr 2009 08:04:23 -0000	1.480
+++ includes/theme.inc	2 May 2009 00:45:13 -0000
@@ -1584,10 +1584,17 @@ function theme_more_help_link($url) {
  * @see theme_feed_icon()
  * @param $url
  *   The url of the feed.
+ * @param $alt
+ *   The alternate text for the icon.
+ * @param $title
+ *   A descriptive title of the feed.
+ * @parm $img
+ *   An alternate icon.
  */
-function theme_xml_icon($url) {
-  if ($image = theme('image', 'misc/xml.png', t('XML feed'), t('XML feed'))) {
-    return '<a href="' . check_url($url) . '" class="xml-icon">' . $image . '</a>';
+function theme_xml_icon($url, $title = 'XML feed', $alt = 'XML feed', $img = 'misc/xml.png') {
+  $title = ($title == $alt) ? '' : t(check_plain($title));
+  if ($image = theme('image', check_url($img), t(check_plain($alt)), $title)) {
+    return '<a href="'. check_url($url) .'" class="feed-icon">'. $image. '</a>';
   }
 }
 
@@ -1596,12 +1603,17 @@ function theme_xml_icon($url) {
  *
  * @param $url
  *   The url of the feed.
+ * @param $alt
+ *   The alternate text for the icon.
  * @param $title
  *   A descriptive title of the feed.
-  */
-function theme_feed_icon($url, $title) {
-  if ($image = theme('image', 'misc/feed.png', t('Syndicate content'), $title)) {
-    return '<a href="' . check_url($url) . '" class="feed-icon">' . $image . '</a>';
+ * @parm $img
+ *   An alternate icon.
+ */
+function theme_feed_icon($url, $title = 'Syndicate content', $alt = 'Syndicate content', $img = 'misc/feed.png') {
+  $title = ($title == $alt) ? '' : t(check_plain($title));
+  if ($image = theme('image', check_url($img), t(check_plain($alt)), $title)) {
+    return '<a href="'. check_url($url) .'" class="feed-icon">'. $image. '</a>';
   }
 }
 
