Bugfix
This commit is contained in:
parent
17febe83be
commit
d9bcb71a46
|
@ -1,7 +1,9 @@
|
|||
<?php
|
||||
|
||||
namespace local_treestudyplan\form;
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
require_once($CFG->dirroot.'/repository/lib.php');
|
||||
use local_treestudyplan\aggregator;
|
||||
use local_treestudyplan\studyplan;
|
||||
use local_treestudyplan\studyplanpage;
|
||||
|
@ -54,7 +56,7 @@ class studyplanpage_editform extends formbase {
|
|||
'areamaxbytes' => 10485760,
|
||||
'maxfiles' => 1, // Just one file
|
||||
'accepted_types' => ['.jpg', '.png'],
|
||||
'return_types' => FILE_INTERNAL | FILE_EXTERNAL,
|
||||
'return_types' => \FILE_INTERNAL | \FILE_EXTERNAL,
|
||||
];
|
||||
return $customdata;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user