Skip to content

Commit

Permalink
MDL-57187 label: allow to drag and drop video/audio files
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaglancy committed Nov 29, 2016
1 parent 3eabedb commit 59e004c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mod/label/lang/en/label.php
Expand Up @@ -29,7 +29,7 @@
$string['dndmedia'] = 'Media drag and drop';
$string['dndresizeheight'] = 'Resize drag and drop height';
$string['dndresizewidth'] = 'Resize drag and drop width';
$string['dnduploadlabel'] = 'Add image to course page';
$string['dnduploadlabel'] = 'Add media to course page';
$string['dnduploadlabeltext'] = 'Add a label to the course page';
$string['label:addinstance'] = 'Add a new label';
$string['label:view'] = 'View label';
Expand Down
2 changes: 1 addition & 1 deletion mod/label/lib.php
Expand Up @@ -192,7 +192,7 @@ function label_supports($feature) {
function label_dndupload_register() {
$strdnd = get_string('dnduploadlabel', 'mod_label');
if (get_config('label', 'dndmedia')) {
$mediaextensions = file_get_typegroup('extension', 'web_image');
$mediaextensions = file_get_typegroup('extension', ['web_image', 'web_video', 'web_audio']);
$files = array();
foreach ($mediaextensions as $extn) {
$extn = trim($extn, '.');
Expand Down

0 comments on commit 59e004c

Please sign in to comment.