call_user_func( $this->importCallback, $rev );
}
}
-
+
function handleUpload( $revision ) {
if ( $this->uploads ) {
$this->uploadCount++;
// $this->report();
$this->progress( "upload: " . $revision->getFilename() );
-
+
if ( !$this->dryRun ) {
// bluuuh hack
// call_user_func( $this->uploadCallback, $revision );
array( &$this, 'handleUpload' ) );
$this->logItemCallback = $importer->setLogItemCallback(
array( &$this, 'handleLogItem' ) );
-
+
if ( $this->dryRun ) {
$importer->setPageOutCallback( null );
}
$result = $reader->importFromStdin();
}
-if ( WikiError::isError( $result ) ) {
- echo $result->getMessage() . "\n";
-} else {
- echo "Done!\n";
- echo "You might want to run rebuildrecentchanges.php to regenerate\n";
- echo "the recentchanges page.\n";
-}
-
-
+echo "Done!\n";
+echo "You might want to run rebuildrecentchanges.php to regenerate\n";
+echo "the recentchanges page.\n";