Skip to content

Commit 4f38c15

Browse files
committed
pull from update branch
1 parent 639e9a3 commit 4f38c15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

classes/post_form.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,13 @@ public static function attachment_options($moodleoverflow) {
153153
public static function editor_options(context_module $context, $postid) {
154154
global $COURSE, $PAGE, $CFG;
155155
$maxbytes = get_user_max_upload_file_size($PAGE->context, $CFG->maxbytes, $COURSE->maxbytes);
156-
return array(
156+
return [
157157
'maxfiles' => EDITOR_UNLIMITED_FILES,
158158
'maxbytes' => $maxbytes,
159159
'trusttext' => true,
160160
'return_types' => FILE_INTERNAL | FILE_EXTERNAL,
161-
'subdirs' => file_area_contains_subdirs($context, 'mod_forum', 'post', $postid)
162-
);
161+
'subdirs' => file_area_contains_subdirs($context, 'mod_forum', 'post', $postid),
162+
];
163163
}
164164
}
165165

0 commit comments

Comments
 (0)