MDL-44854 theme: 'svg' font type not served.

This commit is contained in:
Gareth J Barnard
2014-03-31 11:07:47 +01:00
parent 18b388efe7
commit 16b4059ca3
+3
View File
@@ -74,6 +74,9 @@ if (preg_match('/^[a-z0-9_-]+\.woff$/i', $font, $matches)) {
// IE8 must die!!!
$font = $matches[0];
$mimetype = 'application/vnd.ms-fontobject';
} else if (preg_match('/^[a-z0-9_-]+\.svg$/i', $font, $matches)) {
$font = $matches[0];
$mimetype = 'image/svg+xml';
} else {
font_not_found();