X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Ffilerepo%2FRepoGroup.php;h=5e37d676effbc8f36a6981116f8bf749bb78fc13;hp=2edd6d09142aac1f558bea9c76bd9ecf95ba091a;hb=c16af68fb62948dd8079a7fa49b7c12b9a748121;hpb=8373bf3fc0d901adda07807124b81e89f2c33fb2 diff --git a/includes/filerepo/RepoGroup.php b/includes/filerepo/RepoGroup.php index 2edd6d0914..5e37d676ef 100644 --- a/includes/filerepo/RepoGroup.php +++ b/includes/filerepo/RepoGroup.php @@ -452,7 +452,7 @@ class RepoGroup { return $repo->getFileProps( $fileName ); } else { - $mwProps = new MWFileProps( MimeMagic::singleton() ); + $mwProps = new MWFileProps( MediaWiki\MediaWikiServices::getInstance()->getMimeAnalyzer() ); return $mwProps->getPropsFromPath( $fileName, true ); }