mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Remove deprecated HTTP::getMimeType() use get_mime_type() instead
This commit is contained in:
parent
a46838c436
commit
d13b067b54
@ -185,17 +185,6 @@ class HTTP {
|
||||
return self::findByTagAndAttribute($content, array("img" => "src"));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get mime type based on extension
|
||||
*
|
||||
* @uses finfo
|
||||
* @deprecated Use HTTP::get_mime_type() instead
|
||||
*/
|
||||
public static function getMimeType($filename) {
|
||||
Deprecation::notice('3.0', 'Use HTTP::get_mime_type() instead.');
|
||||
self::get_mime_type($filename);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the MIME type based on a file's extension.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user