diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2008-03-21 11:49:34 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2008-03-21 11:49:34 +0100 |
commit | 086ae52d12011746a75f5588e877347bc0457352 (patch) | |
tree | e73263c7a29d0f94fafb874562610e16eb292ba8 /maintenance/cleanupSpam.php | |
parent | 749e7fb2bae7bbda855de3c9e319435b9f698ff7 (diff) |
Update auf MediaWiki 1.12.0
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 ); |