* (bug 21183) Missing global declaration of $wgLang in SpecialUpload::processVerifica...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 19 Oct 2009 18:24:32 +0000 (18:24 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 19 Oct 2009 18:24:32 +0000 (18:24 +0000)
Patch by Platonides - http://bug-attachment.wikimedia.org/attachment.cgi?id=6686

includes/specials/SpecialUpload.php

index acd6797..4339f43 100644 (file)
@@ -405,7 +405,7 @@ class SpecialUpload extends SpecialPage {
         * @param array $details Result of UploadBase::verifyUpload
         */
        protected function processVerificationError( $details ) {
-               global $wgFileExtensions;
+               global $wgFileExtensions, $wgLang;
                
                switch( $details['status'] ) {