mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'MDL-61215-master' of git://github.com/sarjona/moodle
This commit is contained in:
commit
d48a0a9a5d
8 changed files with 27 additions and 15 deletions
|
@ -70,7 +70,7 @@ class badge extends moodleform {
|
|||
$mform->addRule('description', null, 'required');
|
||||
|
||||
$str = $action == 'new' ? get_string('badgeimage', 'badges') : get_string('newimage', 'badges');
|
||||
$imageoptions = array('maxbytes' => 262144, 'accepted_types' => array('web_image'));
|
||||
$imageoptions = array('maxbytes' => 262144, 'accepted_types' => array('optimised_image'));
|
||||
$mform->addElement('filepicker', 'image', $str, null, $imageoptions);
|
||||
|
||||
if ($action == 'new') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue