FileRepo stuff no longer uses WikiError since ages
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 17 Nov 2010 18:30:20 +0000 (18:30 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 17 Nov 2010 18:30:20 +0000 (18:30 +0000)
maintenance/importImages.php

index de10e69..a3d8ffb 100644 (file)
@@ -196,7 +196,7 @@ if ( count( $args ) > 0 ) {
                                echo( " publishing {$file} by '" . $wgUser->getName() . "', comment '$commentText'... " );
                        } else {
                                $archive = $image->publish( $file );
-                               if ( WikiError::isError( $archive ) || !$archive->isGood() ) {
+                               if ( !$archive->isGood() ) {
                                        echo( "failed.\n" );
                                        $failed++;
                                        continue;