We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94b9c2e commit 8be3250Copy full SHA for 8be3250
files/coursefilesedit.php
@@ -45,7 +45,7 @@
45
$PAGE->set_heading($heading);
46
$PAGE->set_pagelayout('course');
47
48
-$data = new object();
+$data = new stdClass();
49
$options = array('subdirs'=>1, 'maxfiles'=>-1, 'accepted_types'=>'*', 'return_types'=>FILE_INTERNAL);
50
file_prepare_standard_filemanager($data, 'files', $options, $context, $component, $filearea, $itemid);
51
$form = new coursefiles_edit_form(null, array('data'=>$data, 'contextid'=>$contextid));
0 commit comments