This commit is contained in:
PMKuipers 2024-01-26 23:42:28 +01:00
parent 17febe83be
commit d9bcb71a46

View File

@ -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;
}