Merge "Silence warnings about deprecation by ContentHandler."
[lhc/web/wiklou.git] / includes / upload / UploadBase.php
index 6ef3be2..d40b53d 100644 (file)
@@ -1227,7 +1227,7 @@ abstract class UploadBase {
 
                        if ( $wgAntivirusRequired ) {
                                wfProfileOut( __METHOD__ );
-                               return wfMsg( 'virus-scanfailed', array( $exitCode ) );
+                               return wfMessage( 'virus-scanfailed', array( $exitCode ) )->text();
                        } else {
                                wfProfileOut( __METHOD__ );
                                return null;