X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Ffilerepo%2FRepoGroup.php;h=5e37d676effbc8f36a6981116f8bf749bb78fc13;hp=bd32de04e1848d8bae8b8ebb4d684f3d92b1592d;hb=c16af68fb62948dd8079a7fa49b7c12b9a748121;hpb=6244b8c23a7c15be3d9de2130d290a2437bb6587 diff --git a/includes/filerepo/RepoGroup.php b/includes/filerepo/RepoGroup.php index bd32de04e1..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,9 @@ class RepoGroup { return $repo->getFileProps( $fileName ); } else { - return FSFile::getPropsFromPath( $fileName ); + $mwProps = new MWFileProps( MediaWiki\MediaWikiServices::getInstance()->getMimeAnalyzer() ); + + return $mwProps->getPropsFromPath( $fileName, true ); } }