- function cleanup() {
- global $wgCapitalLinks;
- if( $wgCapitalLinks ) {
- echo "\$wgCapitalLinks is on -- no need for caps links cleanup.\n";
- return false;
- }
+ public function execute() {
+ global $wgCapitalLinks, $wgUser;
+ $this->namespace = intval( $this->getOption( 'namespace', 0 ) );
+ $this->dryrun = $this->hasOption( 'dry-run' );
+ $wgUser->setName( 'Conversion script' );
+ if( $wgCapitalLinks )
+ $this->error( "\$wgCapitalLinks is on -- no need for caps links cleanup.", true );