]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15906 filepicker support in all file functions in formslib
authorskodak <skodak>
Sun, 7 Sep 2008 22:35:37 +0000 (22:35 +0000)
committerskodak <skodak>
Sun, 7 Sep 2008 22:35:37 +0000 (22:35 +0000)
mod/forum/post_form.php

index a7ad46be46ddd182c9862be9006ab9bd9048e77a..c9b05eb2decb0e749f6790d9f9fe5fb064b1807d 100644 (file)
@@ -53,7 +53,7 @@ class mod_forum_post_form extends moodleform {
         }
 
         if ($forum->maxbytes != 1 && has_capability('mod/forum:createattachment', $modcontext))  {  //  1 = No attachments at all
-            $mform->addElement('filepicker', 'attachment', get_string('attachment', 'forum'), 'forum_attachment');
+            $mform->addElement('filepicker', 'attachment', get_string('attachment', 'forum'));
             $mform->setHelpButton('attachment', array('attachment', get_string('attachment', 'forum'), 'forum'));
         }