* Update to Slovak translation (sk)
* Update to Alemannic localization (gsw)
* (bug 6300) Bug fixes for sr: variants
+* namespaceDupes.php can now accept an arbitrary prefix, for checking rogue
+ interwikis and such. Not yet fully automated.
+
== Compatibility ==
}
return $ok;
}
+
+ /**
+ * @fixme: do this for reals
+ */
+ function checkInterwiki( $prefix, $fix, $suffix = '' ) {
+ echo "Checking interwiki prefix \"$prefix\"\n";
+ return $this->checkNamespace( 0, $prefix, $fix, $suffix );
+ }
function getConflicts( $ns, $name ) {
$page = $this->newSchema() ? 'page' : 'cur';
$fix = isset( $options['fix'] );
$suffix = isset( $options['suffix'] ) ? $options['suffix'] : '';
+$prefix = isset( $options['prefix'] ) ? $options['prefix'] : '';
$dbw =& wfGetDB( DB_MASTER );
$duper = new NamespaceConflictChecker( $dbw );
-$retval = $duper->checkAll( $fix, $suffix );
+
+if( $prefix ) {
+ $retval = $duper->checkInterwiki( $prefix, $fix, $suffix );
+} else {
+ $retval = $duper->checkAll( $fix, $suffix );
+}
if( $retval ) {
echo "\nLooks good!\n";