]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15348 Make sure the filepicker element shows a label
authormoodler <moodler>
Mon, 1 Sep 2008 06:17:23 +0000 (06:17 +0000)
committermoodler <moodler>
Mon, 1 Sep 2008 06:17:23 +0000 (06:17 +0000)
lib/form/filepicker.php

index 216dc2c18a9385c0cf48f1b2f83b0a8122518384..b577a21f93898cdbacaa3b7c1fe92b53bb281c90 100644 (file)
@@ -18,6 +18,7 @@ class MoodleQuickForm_filepicker extends HTML_QuickForm_button
     var $_helpbutton='';
     
     function MoodleQuickForm_filepicker($elementName=null, $value=null, $filearea=null, $attributes=null) {
+        HTML_QuickForm_input::HTML_QuickForm_input($elementName, $value, $attributes); // Set label cause button doesn't
         parent::HTML_QuickForm_button($elementName, $value, $attributes);
         $this->_filearea = $filearea;
     }