From 08aa4418c30cfc18ccc69a0f0f9cb9e17be6c196 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Mon, 12 Aug 2013 09:28:15 +0200 Subject: Update to MediaWiki 1.21.1 --- includes/upload/UploadFromFile.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'includes/upload/UploadFromFile.php') diff --git a/includes/upload/UploadFromFile.php b/includes/upload/UploadFromFile.php index aa0cc77b..ab2a7a39 100644 --- a/includes/upload/UploadFromFile.php +++ b/includes/upload/UploadFromFile.php @@ -79,21 +79,21 @@ class UploadFromFile extends UploadBase { * @return array */ public function verifyUpload() { - # Check for a post_max_size or upload_max_size overflow, so that a + # Check for a post_max_size or upload_max_size overflow, so that a # proper error can be shown to the user if ( is_null( $this->mTempPath ) || $this->isEmptyFile() ) { if ( $this->mUpload->isIniSizeOverflow() ) { - return array( + return array( 'status' => UploadBase::FILE_TOO_LARGE, - 'max' => min( - self::getMaxUploadSize( $this->getSourceType() ), - wfShorthandToInteger( ini_get( 'upload_max_filesize' ) ), + 'max' => min( + self::getMaxUploadSize( $this->getSourceType() ), + wfShorthandToInteger( ini_get( 'upload_max_filesize' ) ), wfShorthandToInteger( ini_get( 'post_max_size' ) ) ), ); } } - + return parent::verifyUpload(); } } -- cgit v1.2.2