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
Pass $key into CommentStore methods and use MediawikiServices
[lhc/web/wiklou.git]
/
includes
/
filerepo
/
file
/
UnregisteredLocalFile.php
diff --git
a/includes/filerepo/file/UnregisteredLocalFile.php
b/includes/filerepo/file/UnregisteredLocalFile.php
index
cdad5fc
..
fde68bb
100644
(file)
--- a/
includes/filerepo/file/UnregisteredLocalFile.php
+++ b/
includes/filerepo/file/UnregisteredLocalFile.php
@@
-151,7
+151,7
@@
class UnregisteredLocalFile extends File {
*/
function getMimeType() {
if ( !isset( $this->mime ) ) {
- $magic = M
imeMagic::singleton
();
+ $magic = M
ediaWiki\MediaWikiServices::getInstance()->getMimeAnalyzer
();
$this->mime = $magic->guessMimeType( $this->getLocalRefPath() );
}