This is useful when piping lists of pages into the script
to see progress.
Change-Id: I077249ad012d0c463306c0a1a1e38d00624c5170
}
}
- private function purge( $title ) {
- $title = Title::newFromText( $title );
+ private function purge( $titleText ) {
+ $title = Title::newFromText( $titleText );
if ( is_null( $title ) ) {
$this->error( 'Invalid page title' );
}
if ( $page->doPurge() ) {
- $this->output( "Purged\n" );
+ $this->output( "Purged {$titleText}\n" );
} else {
- $this->error( "Purge failed" );
+ $this->error( "Purge failed for {$titleText}" );
}
}
}