From 247c0d30106350654da8169c61e902478f72301d Mon Sep 17 00:00:00 2001
From: Alex Barth <alex_b@53995.no-reply.drupal.org>
Date: Mon, 20 Sep 2010 16:56:24 +0000
Subject: [PATCH] Make sure title does not print twice.

---
 feeds.pages.inc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/feeds.pages.inc b/feeds.pages.inc
index 424de6b0..44b244ad 100644
--- a/feeds.pages.inc
+++ b/feeds.pages.inc
@@ -178,5 +178,8 @@ function theme_feeds_upload($variables) {
   $description .= '<input type="file" name="'. $element['#name'] .'"'. ($element['#attributes'] ? ' '. drupal_attributes($element['#attributes']) : '') .' id="'. $element['#id'] .'" size="'. $element['#size'] ."\" />\n";
   $description .= '</div>';
   $element['#description'] = $description;
+
+  // For some reason not unsetting #title leads to printing the title twice.
+  unset($element['#title']);
   return theme('form_element', $element);
 }
-- 
GitLab