diff --git a/theme/font.php b/theme/font.php index f093421e993..867b45147b0 100644 --- a/theme/font.php +++ b/theme/font.php @@ -62,15 +62,15 @@ if (preg_match('/^[a-z0-9_-]+\.woff$/i', $font, $matches)) { $font = $matches[0]; $mimetype = 'application/font-woff'; -} else if (preg_match('^[a-z0-9_-]+/\.ttf$/i', $font, $matches)) { +} else if (preg_match('/^[a-z0-9_-]+\.ttf$/i', $font, $matches)) { $font = $matches[0]; $mimetype = 'application/x-font-ttf'; -} else if (preg_match('^[a-z0-9_-]+/\.otf$/i', $font, $matches)) { +} else if (preg_match('/^[a-z0-9_-]+\.otf$/i', $font, $matches)) { $font = $matches[0]; $mimetype = 'application/x-font-opentype'; -} else if (preg_match('^[a-z0-9_-]+/\.oet$/i', $font, $matches)) { +} else if (preg_match('/^[a-z0-9_-]+\.oet$/i', $font, $matches)) { // IE8 must die!!! $font = $matches[0]; $mimetype = 'application/vnd.ms-fontobject';