From d3a358a2271d572c3bb38804b5e8e2c09f74bc7c Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 21 Aug 2005 23:15:26 +0000 Subject: [PATCH] * (bug 3216) Don't show empty warning page when no warnings. --- RELEASE-NOTES | 2 ++ includes/SpecialUpload.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index d3d1ab0b3e..05aa2fd4ee 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -41,6 +41,8 @@ Misc work going on..... * Edit conflict on recreation of deleted page * (bug 3210) Fix Media: links with remote image URL path * (bug 1956) Hide bot uploads from Special:Newimages +* (bug 3216) Don't show empty warning page when no warnings. + === Caveats === diff --git a/includes/SpecialUpload.php b/includes/SpecialUpload.php index e8f371ede6..40ab946db4 100644 --- a/includes/SpecialUpload.php +++ b/includes/SpecialUpload.php @@ -220,7 +220,7 @@ class UploadForm { * Check for non-fatal conditions */ if ( ! $this->mIgnoreWarning ) { - $warning = '"); + return $this->uploadWarning( $warning ); } } -- 2.20.1