]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15405 Send the correct filearea forum_attachment (not that we really use it)
authormoodler <moodler>
Tue, 2 Sep 2008 03:00:51 +0000 (03:00 +0000)
committermoodler <moodler>
Tue, 2 Sep 2008 03:00:51 +0000 (03:00 +0000)
mod/forum/post_form.php

index 8b1e8e707abda52f7ebc85f7bb8b5c05233950ed..a7ad46be46ddd182c9862be9006ab9bd9048e77a 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'), 'forumpost');
+            $mform->addElement('filepicker', 'attachment', get_string('attachment', 'forum'), 'forum_attachment');
             $mform->setHelpButton('attachment', array('attachment', get_string('attachment', 'forum'), 'forum'));
         }