MDL-14589 file api improvements - converting more params to general $options array
[moodle.git] / course / modedit.php
index 2c51973..0e3dd81 100644 (file)
 
         if (plugin_supports('mod', $form->modulename, FEATURE_MOD_INTRO, true)) {
             $draftid_editor = file_get_submitted_draft_itemid('introeditor');
-            $currentintro = file_prepare_draft_area($draftid_editor, $context->id, $form->modulename.'_intro', 0, true, $form->intro);
+            $currentintro = file_prepare_draft_area($draftid_editor, $context->id, $form->modulename.'_intro', 0, array('subdirs'=>true), $form->intro);
             $form->introeditor = array('text'=>$currentintro, 'format'=>$form->introformat, 'itemid'=>$draftid_editor);
         }
 
         $mform->display();
         print_footer($course);
     }
-?>