MDL-15906 filepicker support in all file functions in formslib

This commit is contained in:
skodak 2008-09-07 22:35:37 +00:00
parent a4e936d47d
commit 9fcb74407c

View 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 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')); $mform->setHelpButton('attachment', array('attachment', get_string('attachment', 'forum'), 'forum'));
} }