Using WikiError seems to be useless here
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 26 Jun 2008 14:00:57 +0000 (14:00 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 26 Jun 2008 14:00:57 +0000 (14:00 +0000)
includes/specials/SpecialUpload.php

index 3ab6aa6..81d5b07 100644 (file)
@@ -315,8 +315,7 @@ class UploadForm {
 
                        case self::OVERWRITE_EXISTING_FILE:
                                $errorText = $details['overwrite'];
-                               $overwrite = new WikiError( $wgOut->parse( $errorText ) );
-                               $this->uploadError( $overwrite->toString() );
+                               $this->uploadError( $wgOut->parse( $errorText ) );
                                break;
 
                        case self::FILETYPE_MISSING: