dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace MimeMagic::singleton() calls
[lhc/web/wiklou.git]
/
includes
/
filerepo
/
RepoGroup.php
diff --git
a/includes/filerepo/RepoGroup.php
b/includes/filerepo/RepoGroup.php
index
d47624f
..
5e37d67
100644
(file)
--- 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
/**
* Get the repo instance by its name
* @param string $name
- * @return bool
+ * @return
FileRepo|
bool
*/
function getRepoByName( $name ) {
if ( !$this->reposInitialised ) {
*/
function getRepoByName( $name ) {
if ( !$this->reposInitialised ) {
@@
-452,7
+452,7
@@
class RepoGroup {
return $repo->getFileProps( $fileName );
} else {
return $repo->getFileProps( $fileName );
} else {
- $mwProps = new MWFileProps( M
imeMagic::singleton
() );
+ $mwProps = new MWFileProps( M
ediaWiki\MediaWikiServices::getInstance()->getMimeAnalyzer
() );
return $mwProps->getPropsFromPath( $fileName, true );
}
return $mwProps->getPropsFromPath( $fileName, true );
}