From cb83bfa579768ef954f2822e83926d872ecc8490 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Thu, 22 Jul 2010 21:52:06 +0000 Subject: [PATCH] LIMIT_SML2, LIMIT_BIG2 are in ApiBase, not ApiMain --- includes/api/ApiUpload.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/api/ApiUpload.php b/includes/api/ApiUpload.php index f3c3e4e9e6..7c51ca6593 100644 --- a/includes/api/ApiUpload.php +++ b/includes/api/ApiUpload.php @@ -270,7 +270,9 @@ class ApiUpload extends ApiBase { $this->verifyUpload(); $warnings = $this->checkForWarnings(); - if ( isset( $warnings ) ) return $warnings; + if ( isset( $warnings ) ) { + return $warnings; + } // Use comment as initial page text by default if ( is_null( $this->mParams['text'] ) ) { -- 2.20.1