} else {
$archive = $image->publish( $file );
if ( !$archive->isGood() ) {
- echo( "failed.\n" );
+ echo( "failed. (" .
+ $archive->getWikiText() .
+ ")\n" );
$failed++;
continue;
}
$article = new Article( $title );
echo "\nWaiting for slaves...\n";
// Wait for slaves.
- sleep( 2.0 );
- wfWaitForSlaves( 1.0 );
+ sleep( 2.0 ); # Why this sleep?
+ wfWaitForSlaves();
echo( "\nSetting image restrictions ... " );
if ( $article->updateRestrictions( $restrictions ) )
}
} else {
- echo( "failed.\n" );
+ echo( "failed. (at recordUpload stage)\n" );
$svar = 'failed';
}