Replace MimeMagic::singleton() calls
[lhc/web/wiklou.git] / includes / filerepo / RepoGroup.php
index 2edd6d0..5e37d67 100644 (file)
@@ -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 );
                }