MDL-33144 display filetype icon and mimetype based on extension
commitae7f35b934cc0247a50558fb76a5465c8ca46d7c
authorMarina Glancy <marina@moodle.com>
Wed, 23 May 2012 06:51:55 +0000 (23 14:51 +0800)
committerMarina Glancy <marina@moodle.com>
Wed, 23 May 2012 06:51:55 +0000 (23 14:51 +0800)
treef0cc469871f695386a110ad9a2ef8484d55791aa
parent5a5cdaf92e4275b236281ae58eed2418f9eb8aca
MDL-33144 display filetype icon and mimetype based on extension

- use finfo to determine mimetype of a file only when it is unknown from file extension
- display filetype icon and mimetype in filemanager based on file extension
- fixed a small issue with specifying extension instead of group in file_get_typegroup()
- allow only web-compartible image types when embedding into editor or using in database field
- created new groups web_video and web_audio to use in resource module
lib/filelib.php
lib/filestorage/file_storage.php
lib/form/editor.php
mod/data/field/picture/field.class.php
mod/data/field/textarea/field.class.php
mod/resource/locallib.php
repository/upload/lib.php