* (bug 6639) Use a consistent default for upload directories
* Preserve entered reason when reporting unconfirmed lock on Special:Lockdb
* (bug 6642) Don't offer to unlock the database when it isn't locked
+* cleanupTitles.php changed from --dry-run option to --fix, so default
+ behavior is now a non-invasive check as with namespaceDupes.php
+
== Languages updated ==
/*
* Script to clean up broken, unparseable titles.
*
- * Usage: php cleanupTitles.php [--dry-run]
+ * Usage: php cleanupTitles.php [--fix]
* Options:
- * --dry-run don't actually try moving them
+ * --fix Actually clean up titles; otherwise just checks for them
*
* Copyright (C) 2005 Brion Vibber <brion@pobox.com>
* http://www.mediawiki.org/
* @subpackage maintenance
*/
-$options = array( 'dry-run' );
-
require_once( 'commandLine.inc' );
require_once( 'FiveUpgrade.inc' );
}
function cleanup() {
+ if( $this->dryrun ) {
+ echo "Checking for bad titles...\n";
+ } else {
+ echo "Checking and fixing bad titles...\n";
+ }
$this->runTable( 'page',
'', //'WHERE page_namespace=0',
array( &$this, 'processPage' ) );
}
$wgUser->setName( 'Conversion script' );
-$caps = new TitleCleanup( isset( $options['dry-run'] ) );
+$caps = new TitleCleanup( !isset( $options['fix'] ) );
$caps->cleanup();
?>