Remove some duplicate newlines in call to wfDebug()
authorAntoine Musso <hashar@free.fr>
Fri, 25 Jul 2014 10:58:27 +0000 (12:58 +0200)
committerIAlex <codereview@emsenhuber.ch>
Sun, 27 Jul 2014 14:31:26 +0000 (14:31 +0000)
Spotted on beta:

--------
commonswiki-375c0c3e:

0.0752   1.9M  mime: <image/png> extension: <png>

--------

With lot of requests, that causes them to be interlayed and ungreppable.

Change-Id: Ib99bc9547bdecb9efa59b7d292ddd7d10a552652

includes/upload/UploadBase.php

index 24a93e4..e74f520 100644 (file)
@@ -388,7 +388,7 @@ abstract class UploadBase {
                global $wgVerifyMimeType;
                wfProfileIn( __METHOD__ );
                if ( $wgVerifyMimeType ) {
-                       wfDebug( "\n\nmime: <$mime> extension: <{$this->mFinalExtension}>\n\n" );
+                       wfDebug( "mime: <$mime> extension: <{$this->mFinalExtension}>\n" );
                        global $wgMimeTypeBlacklist;
                        if ( $this->checkFileExtension( $mime, $wgMimeTypeBlacklist ) ) {
                                wfProfileOut( __METHOD__ );