X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Ffilerepo%2FRepoGroup.php;h=24d1ab2efefb8baf02bbbbe60a6d86ac05261e77;hb=9527edfd59f889151e0334f1a729acf2f730cfde;hp=2edd6d09142aac1f558bea9c76bd9ecf95ba091a;hpb=8e622749cf468f4da8ca3dcb16777f9a56609aba;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/filerepo/RepoGroup.php b/includes/filerepo/RepoGroup.php index 2edd6d0914..24d1ab2efe 100644 --- a/includes/filerepo/RepoGroup.php +++ b/includes/filerepo/RepoGroup.php @@ -138,7 +138,7 @@ class RepoGroup { $dbkey = $title->getDBkey(); if ( empty( $options['ignoreRedirect'] ) && empty( $options['private'] ) - && empty( $options['bypassCache'] ) + && empty( $options['latest'] ) ) { $time = isset( $options['time'] ) ? $options['time'] : ''; if ( $this->cache->has( $dbkey, $time, 60 ) ) { @@ -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 ); }