Explorar el Código

Adding more web font types to known assets

WOFF is simply not enough :)
richi hace 8 años
padre
commit
c5a50861dc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      system/plugins/core.php

+ 1 - 1
system/plugins/core.php

@@ -2373,7 +2373,7 @@ class YellowLookup
 	// Return file path for system location
 	// Return file path for system location
 	function findFileFromSystem($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"));
 			$pluginLocationLength = strlenu($this->yellow->config->get("pluginLocation"));
 			$themeLocationLength = strlenu($this->yellow->config->get("themeLocation"));
 			$themeLocationLength = strlenu($this->yellow->config->get("themeLocation"));