MDL-33325 folder: 'set as main file' option removed, from filepicker when editing a file in a folder resource

This commit is contained in:
Ankit Agarwal 2012-05-24 15:13:22 +08:00
parent 5a5cdaf92e
commit 6a9949a489

View File

@ -48,7 +48,7 @@ $PAGE->set_activity_record($folder);
$data = new stdClass();
$data->id = $cm->id;
$options = array('mainfile'=>true, 'subdirs'=>1, 'maxbytes'=>$CFG->maxbytes, 'maxfiles'=>-1, 'accepted_types'=>'*');
$options = array('subdirs'=>1, 'maxbytes'=>$CFG->maxbytes, 'maxfiles'=>-1, 'accepted_types'=>'*');
file_prepare_standard_filemanager($data, 'files', $options, $context, 'mod_folder', 'content', 0);
$mform = new mod_folder_edit_form(null, array('data'=>$data, 'options'=>$options));