mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 12:34:28 +01:00
MDL-15906 filepicker support in all file functions in formslib
This commit is contained in:
parent
a4e936d47d
commit
9fcb74407c
@ -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'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user