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