diff options
Diffstat (limited to 'maintenance/cleanupSpam.php')
-rw-r--r-- | maintenance/cleanupSpam.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/maintenance/cleanupSpam.php b/maintenance/cleanupSpam.php index 2c269b34..36d8b258 100644 --- a/maintenance/cleanupSpam.php +++ b/maintenance/cleanupSpam.php @@ -14,9 +14,8 @@ function cleanupArticle( $id, $domain ) { $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 ); |