Skip to content

Commit

Permalink
MDL-23163, added mp3 to editor
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsheng Cai committed Jul 9, 2010
1 parent 0442338 commit 033aad7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/form/editor.php
Expand Up @@ -170,7 +170,7 @@ function toHtml() {

$image_options = initialise_filepicker($args);

$args->accepted_types = array('video', 'media');
$args->accepted_types = array('video', 'audio');
$media_options = initialise_filepicker($args);

$image_options->client_id = uniqid();
Expand Down
2 changes: 1 addition & 1 deletion repository/repository_ajax.php
Expand Up @@ -176,7 +176,7 @@
$mimetypes[] = mimeinfo('type', $type);
}
if (!in_array(mimeinfo('type', $saveas_filename), $mimetypes)) {
throw new moodle_exception('invalidfiletype', 'repository', '', mimeinfo('type', $saveas_filename));
throw new moodle_exception('invalidfiletype', 'repository', '', get_string(mimeinfo('type', $saveas_filename), 'mimetypes'));
}
}

Expand Down
2 changes: 1 addition & 1 deletion repository/upload/lib.php
Expand Up @@ -86,7 +86,7 @@ public function upload() {
if ($this->mimetypes != '*') {
// check filetype
if (!in_array(mimeinfo('type', $_FILES[$elname]['name']), $this->mimetypes)) {
throw new moodle_exception('invalidfiletype', 'repository', '', mimeinfo('type', $_FILES[$elname]['name']));
throw new moodle_exception('invalidfiletype', 'repository', '', get_string(mimeinfo('type', $_FILES[$elname]['name']), 'mimetypes'));
}
}

Expand Down

0 comments on commit 033aad7

Please sign in to comment.