Skip to content

Commit

Permalink
MDL-62320 mimetypes: Add JSON to the default mime types list
Browse files Browse the repository at this point in the history
  • Loading branch information
vmdef committed Jun 15, 2018
1 parent 9e7c397 commit 046dd89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lang/en/mimetypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
*/

$string['application/epub_zip'] = 'EPUB ebook';
$string['application/json'] = '{$a->MIMETYPE2} text';
$string['application/msword'] = 'Word document';
$string['application/pdf'] = 'PDF document';
$string['application/vnd.moodle.backup'] = 'Moodle backup';
Expand Down
1 change: 1 addition & 0 deletions lib/classes/filetypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ protected static function get_default_types() {
'jpg' => array('type' => 'image/jpeg', 'icon' => 'jpeg', 'groups' => array('image', 'web_image'), 'string' => 'image'),
'jqz' => array('type' => 'text/xml', 'icon' => 'markup'),
'js' => array('type' => 'application/x-javascript', 'icon' => 'text', 'groups' => array('web_file')),
'json' => array('type' => 'application/json', 'icon' => 'text'),
'latex' => array('type' => 'application/x-latex', 'icon' => 'text'),
'm' => array('type' => 'text/plain', 'icon' => 'sourcecode'),
'mbz' => array('type' => 'application/vnd.moodle.backup', 'icon' => 'moodle'),
Expand Down

0 comments on commit 046dd89

Please sign in to comment.