X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Ffilerepo%2Ffile%2FUnregisteredLocalFile.php;h=fde68bbe74a38bf1b90dd65a3830cb277bbc7097;hb=3844fd9d639ed67cd3519eab2d7db440100cdd26;hp=b22f8cb34ea1a0b3597e607d640c08fd0554fdd8;hpb=4a5f646a7fea7cbe0421c5cf38b72bae5c1bcf65;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/filerepo/file/UnregisteredLocalFile.php b/includes/filerepo/file/UnregisteredLocalFile.php index b22f8cb34e..fde68bbe74 100644 --- a/includes/filerepo/file/UnregisteredLocalFile.php +++ b/includes/filerepo/file/UnregisteredLocalFile.php @@ -151,7 +151,7 @@ class UnregisteredLocalFile extends File { */ function getMimeType() { if ( !isset( $this->mime ) ) { - $magic = MimeMagic::singleton(); + $magic = MediaWiki\MediaWikiServices::getInstance()->getMimeAnalyzer(); $this->mime = $magic->guessMimeType( $this->getLocalRefPath() ); } @@ -171,8 +171,8 @@ class UnregisteredLocalFile extends File { } /** - * @return int - */ + * @return int + */ function getBitDepth() { $gis = $this->getImageSize( $this->getLocalRefPath() );