Browse files

MDL-33325 folder: 'set as main file' option removed, from filepicker …

…when editing a file in a folder resource
  • Loading branch information...
1 parent 2ddb941 commit b284426dd1669a7a7addafc709b0bd7d94462851 @ankitagarwal ankitagarwal committed May 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/folder/edit.php
View
2 mod/folder/edit.php
@@ -48,7 +48,7 @@
$data = new stdClass();
$data->id = $cm->id;
-$options = array('mainfile'=>true, 'subdirs'=>1, 'maxbytes'=>$CFG->maxbytes, 'maxfiles'=>-1, 'accepted_types'=>'*', 'return_types'=>FILE_INTERNAL);
+$options = array('subdirs'=>1, 'maxbytes'=>$CFG->maxbytes, 'maxfiles'=>-1, 'accepted_types'=>'*', 'return_types'=>FILE_INTERNAL);
file_prepare_standard_filemanager($data, 'files', $options, $context, 'mod_folder', 'content', 0);
$mform = new mod_folder_edit_form(null, array('data'=>$data, 'options'=>$options));

0 comments on commit b284426

Please sign in to comment.