X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Ffilebackend%2FFileBackendGroup.php;h=0b61979409253e6379607bec2e5cdb92e2b0f086;hp=5d0da6d32a5c6c2d1e62e03f9349072fbb0173aa;hb=c16af68fb62948dd8079a7fa49b7c12b9a748121;hpb=64b83bdb3afd0ee4f8fc1893a865409c198e601e diff --git a/includes/filebackend/FileBackendGroup.php b/includes/filebackend/FileBackendGroup.php index 5d0da6d32a..0b61979409 100644 --- a/includes/filebackend/FileBackendGroup.php +++ b/includes/filebackend/FileBackendGroup.php @@ -229,7 +229,7 @@ class FileBackendGroup { * @since 1.27 */ public function guessMimeInternal( $storagePath, $content, $fsPath ) { - $magic = MimeMagic::singleton(); + $magic = MediaWiki\MediaWikiServices::getInstance()->getMimeAnalyzer(); // Trust the extension of the storage path (caller must validate) $ext = FileBackend::extensionFromPath( $storagePath ); $type = $magic->guessTypesForExtension( $ext );