# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: moodle/lib/form/choosecoursefileorimsrepo.php
--- moodle/lib/form/choosecoursefileorimsrepo.php Base (1.3)
+++ moodle/lib/form/choosecoursefileorimsrepo.php Locally Modified (Based On 1.3)
@@ -63,7 +63,11 @@
         global $CFG, $COURSE;
         $this->_elements = array();
 
-        $this->_elements[0] =& MoodleQuickForm::createElement('text', 'value', '', array('size'=>'48'));
+        if (!is_array($this->getAttributes()) || !array_key_exists('size', $this->getAttributes())) {
+            $this->updateAttributes(array('size' => 48));
+        }
+
+        $this->_elements[0] =& MoodleQuickForm::createElement('text', 'value', '', $this->getAttributes());
         $this->_elements[1] =& MoodleQuickForm::createElement('button', 'popup', get_string('chooseafile', 'resource') .' ...');
 
         $button =& $this->_elements[1];
