Reedy has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/393507 )

Change subject: Replace MimeMagic::singleton() call
......................................................................

Replace MimeMagic::singleton() call

Change-Id: I3278509ef2ee1a1a5dd0aaad394fa4fce43abfd9
---
M backend/ConfirmAccount.class.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ConfirmAccount 
refs/changes/07/393507/1

diff --git a/backend/ConfirmAccount.class.php b/backend/ConfirmAccount.class.php
index 8ca46ee..9d93d96 100644
--- a/backend/ConfirmAccount.class.php
+++ b/backend/ConfirmAccount.class.php
@@ -214,7 +214,7 @@
        public static function verifyAttachment( $tmpfile, $extension ) {
                global $wgVerifyMimeType, $wgMimeTypeBlacklist;
 
-               $magic = MimeMagic::singleton(); // magically determine mime 
type
+               $magic = 
MediaWiki\MediaWikiServices::getInstance()->getMimeAnalyzer(); // magically 
determine mime type
                $mime = $magic->guessMimeType( $tmpfile, false );
                # check mime type, if desired
                if ( $wgVerifyMimeType ) {

-- 
To view, visit https://gerrit.wikimedia.org/r/393507
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3278509ef2ee1a1a5dd0aaad394fa4fce43abfd9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ConfirmAccount
Gerrit-Branch: master
Gerrit-Owner: Reedy <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to