X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Ffilerepo%2FRepoGroup.php;h=5e37d676effbc8f36a6981116f8bf749bb78fc13;hp=d47624f8cdea317368e03f13074770d3ea8ed209;hb=c16af68fb62948dd8079a7fa49b7c12b9a748121;hpb=32628487e17c27f3437d44bd54edb8438e837b82 diff --git a/includes/filerepo/RepoGroup.php b/includes/filerepo/RepoGroup.php index d47624f8cd..5e37d676ef 100644 --- a/includes/filerepo/RepoGroup.php +++ b/includes/filerepo/RepoGroup.php @@ -334,7 +334,7 @@ class RepoGroup { /** * Get the repo instance by its name * @param string $name - * @return bool + * @return FileRepo|bool */ function getRepoByName( $name ) { if ( !$this->reposInitialised ) { @@ -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 ); }