Adding more web font types to known assets

WOFF is simply not enough :)
This commit is contained in:
richi 2017-03-03 21:23:06 +01:00
parent d925580b92
commit c5a50861dc

View file

@ -2373,7 +2373,7 @@ class YellowLookup
// Return file path for system location
function findFileFromSystem($location)
{
if(preg_match("/\.(css|ico|js|jpg|png|svg|txt|woff)$/", $location))
if(preg_match("/\.(css|ico|js|jpg|png|svg|txt|woff|woff2|otf|ttf)$/", $location))
{
$pluginLocationLength = strlenu($this->yellow->config->get("pluginLocation"));
$themeLocationLength = strlenu($this->yellow->config->get("themeLocation"));