Index: trunk/phase3/maintenance/cleanupSpam.php |
— | — | @@ -114,14 +114,12 @@ |
115 | 115 | // Didn't find a non-spammy revision, blank the page |
116 | 116 | $this->output( "blanking\n" ); |
117 | 117 | $article = new Article( $title ); |
118 | | - $article->updateArticle( '', wfMsg( 'spam_blanking', $domain ), |
119 | | - false, false ); |
120 | | - |
| 118 | + $article->doEdit( '', wfMsg( 'spam_blanking', $domain ) ); |
121 | 119 | } else { |
122 | 120 | // Revert to this revision |
123 | 121 | $this->output( "reverting\n" ); |
124 | 122 | $article = new Article( $title ); |
125 | | - $article->updateArticle( $rev->getText(), wfMsg( 'spam_reverting', $domain ), false, false ); |
| 123 | + $article->doEdit( $rev->getText(), wfMsg( 'spam_reverting', $domain ), EDIT_UPDATE ); |
126 | 124 | } |
127 | 125 | $dbw->commit(); |
128 | 126 | wfDoUpdates(); |