(bug 42184) Send second variable for large-variable message
authorKunal Mehta <legoktm@gmail.com>
Mon, 17 Dec 2012 06:24:11 +0000 (00:24 -0600)
committerKunal Mehta <legoktm@gmail.com>
Mon, 17 Dec 2012 06:26:12 +0000 (00:26 -0600)
Change-Id: Iad4bb0d0ab25248ec6296af4f39401eeb59c306f

RELEASE-NOTES-1.21
includes/upload/UploadBase.php

index f2cfbb7..7ff0683 100644 (file)
@@ -114,6 +114,7 @@ production.
   will require updates to your site's CSS or JS.
 * (bug 41342) jquery.suggestions should cancel any active (async) fetches
   before it triggers another fetch.
+* (bug 42184) $wgUploadSizeWarning missing second variable
 
 === API changes in 1.21 ===
 * prop=revisions can now report the contentmodel and contentformat.
index fdd5f65..dc32a29 100644 (file)
@@ -581,7 +581,7 @@ abstract class UploadBase {
 
                global $wgUploadSizeWarning;
                if ( $wgUploadSizeWarning && ( $this->mFileSize > $wgUploadSizeWarning ) ) {
-                       $warnings['large-file'] = $wgUploadSizeWarning;
+                       $warnings['large-file'] = array( $wgUploadSizeWarning, $this->mFileSize );
                }
 
                if ( $this->mFileSize == 0 ) {