print $title->getPrefixedDBkey() . " ...";
$rev = Revision::newFromTitle( $title );
- $reverted = false;
$revId = $rev->getId();
$currentRevId = $revId;
$regex = LinkFilter::makeRegex( $domain );
// This happens e.g. when a link comes from a template rather than the page itself
print "False match\n";
} else {
- $dbw =& wfGetDB( DB_MASTER );
+ $dbw = wfGetDB( DB_MASTER );
$dbw->immediateBegin();
if ( !$rev ) {
// Didn't find a non-spammy revision, blank the page
exit(1);
}
-$dbr =& wfGetDB( DB_SLAVE );
+$dbr = wfGetDB( DB_SLAVE );
-if ( $options['all'] ) {
+if ( isset($options['all']) ) {
// Clean up spam on all wikis
- $dbr =& wfGetDB( DB_SLAVE );
+ $dbr = wfGetDB( DB_SLAVE );
print "Finding spam on " . count($wgLocalDatabases) . " wikis\n";
$found = false;
foreach ( $wgLocalDatabases as $db ) {
}
}
-?>
+