Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.6.2
-
Component/s: Resource
-
Labels:None
-
Environment:Any
-
Database:Any
-
Affected Branches:MOODLE_16_STABLE
-
Fixed Branches:MOODLE_16_STABLE, MOODLE_17_STABLE
Description
Applies to Web browsers (Firefox, Opera) that natively display SVG and require correct MIME type to be served from Moodle.
Internet Explorer + Adobe SVG Plugin view does not have a problem as it renders SVG base on the .svg extension alone.
Problem can be simply resolved by adding the following lines to function get_mimetypes_array() in /lib/filelib.php
i.e.
'svg' => array ('type'=>'image/svg+xml', 'icon'=>'image.gif'),
'svgz' => array ('type'=>'image/svg+xml', 'icon'=>'image.gif'),
Issue Links
| This issue is a clone of: | ||||
| MDL-10599 | CLONE -Scalable Vector Graphics (SVG) files in Moodle are not correctly displayed in many Browsers |
|
|
|
fixed in cvs, thanks for the report and patch!