Skip to content

Commit

Permalink
MDL-33325 folder: 'set as main file' option removed, from filepicker …
Browse files Browse the repository at this point in the history
…when editing a file in a folder resource
  • Loading branch information
ankitagarwal committed May 25, 2012
1 parent 2ddb941 commit b284426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/folder/edit.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@


$data = new stdClass(); $data = new stdClass();
$data->id = $cm->id; $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); file_prepare_standard_filemanager($data, 'files', $options, $context, 'mod_folder', 'content', 0);


$mform = new mod_folder_edit_form(null, array('data'=>$data, 'options'=>$options)); $mform = new mod_folder_edit_form(null, array('data'=>$data, 'options'=>$options));
Expand Down

0 comments on commit b284426

Please sign in to comment.