diff --git a/mod/glossary/edit.php b/mod/glossary/edit.php index a66580b1771..09eab850094 100644 --- a/mod/glossary/edit.php +++ b/mod/glossary/edit.php @@ -66,7 +66,7 @@ if ($id) { // if entry is specified $maxfiles = 99; // TODO: add some setting $maxbytes = $course->maxbytes; // TODO: add some setting -$definitionoptions = array('trusttext'=>true, 'subdirs'=>false, 'maxfiles'=>$maxfiles, 'maxbytes'=>$maxbytes, 'trusttext'=>true, 'context'=>$context); +$definitionoptions = array('trusttext'=>true, 'subdirs'=>false, 'maxfiles'=>$maxfiles, 'maxbytes'=>$maxbytes, 'context'=>$context); $attachmentoptions = array('subdirs'=>false, 'maxfiles'=>$maxfiles, 'maxbytes'=>$maxbytes); $entry = file_prepare_standard_editor($entry, 'definition', $definitionoptions, $context, 'glossary_entry', $entry->id);