mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 14:22:54 +09:00
Storage::getContentType() 메소드를 MIME 클래스로 이동함
This commit is contained in:
parent
9163bc24e9
commit
805a7324cc
4 changed files with 36 additions and 36 deletions
|
|
@ -15,7 +15,7 @@ class Image
|
|||
*/
|
||||
public static function isImage($filename)
|
||||
{
|
||||
return array_shift(explode('/', Storage::getContentType($filename))) === 'image';
|
||||
return array_shift(explode('/', MIME::getContentType($filename))) === 'image';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -26,7 +26,7 @@ class Image
|
|||
*/
|
||||
public static function isAnimatedGIF($filename)
|
||||
{
|
||||
if (Storage::getContentType($filename) !== 'image/gif')
|
||||
if (MIME::getContentType($filename) !== 'image/gif')
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue