mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
MDL-46728 themes: WOFF2 fonts are not supported.
This commit is contained in:
parent
4c27f52d91
commit
eb1861983a
@ -57,7 +57,11 @@ if (empty($component) or $component === 'moodle' or $component === 'core') {
|
||||
$component = 'core';
|
||||
}
|
||||
|
||||
if (preg_match('/^[a-z0-9_-]+\.woff$/i', $font, $matches)) {
|
||||
if (preg_match('/^[a-z0-9_-]+\.woff2$/i', $font, $matches)) {
|
||||
$font = $matches[0];
|
||||
$mimetype = 'application/font-woff2';
|
||||
|
||||
} else if (preg_match('/^[a-z0-9_-]+\.woff$/i', $font, $matches)) {
|
||||
// This is the real standard!
|
||||
$font = $matches[0];
|
||||
$mimetype = 'application/font-woff';
|
||||
|
Loading…
x
Reference in New Issue
Block a user