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;