$rev = Revision::newFromTitle( $title );
$revId = $rev->getId();
$currentRevId = $revId;
- $regex = LinkFilter::makeRegex( $domain );
- while ( $rev && preg_match( $regex, $rev->getText() ) ) {
+ while ( $rev && LinkFilter::matchEntry( $rev->getText() , $domain ) ) {
# Revision::getPrevious can't be used in this way before MW 1.6 (Revision.php 1.26)
#$rev = $rev->getPrevious();
$revId = $title->getPreviousRevisionID( $revId );
$dbr = wfGetDB( DB_SLAVE );
-if ( $options['all'] ) {
+if ( isset($options['all']) ) {
// Clean up spam on all wikis
$dbr = wfGetDB( DB_SLAVE );
print "Finding spam on " . count($wgLocalDatabases) . " wikis\n";
}
}
-?>
+