MDL-49518 libraries: Update lessphp to 1.7.0.3
This commit is contained in:
Regular → Executable
+9
-4
@@ -16,10 +16,15 @@ class Less_Mime{
|
||||
'.gif' => 'image/gif',
|
||||
'.jpg' => 'image/jpeg',
|
||||
'.jpeg'=> 'image/jpeg',
|
||||
'.png' => 'image/png'
|
||||
'.png' => 'image/png',
|
||||
'.ttf' => 'application/x-font-ttf',
|
||||
'.otf' => 'application/x-font-otf',
|
||||
'.eot' => 'application/vnd.ms-fontobject',
|
||||
'.woff' => 'application/x-font-woff',
|
||||
'.svg' => 'image/svg+xml',
|
||||
);
|
||||
|
||||
static function lookup( $filepath ){
|
||||
public static function lookup( $filepath ){
|
||||
$parts = explode('.',$filepath);
|
||||
$ext = '.'.strtolower(array_pop($parts));
|
||||
|
||||
@@ -29,8 +34,8 @@ class Less_Mime{
|
||||
return self::$_types[$ext];
|
||||
}
|
||||
|
||||
static function charsets_lookup( $type = null ){
|
||||
public static function charsets_lookup( $type = null ){
|
||||
// assumes all text types are UTF-8
|
||||
return $type && preg_match('/^text\//',$type) ? 'UTF-8' : '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user