mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamBlacklist
synced 2024-11-23 22:54:57 +00:00
Removed useless begin/commit calls from CLI script
Change-Id: I87447b67de7f1f99c5fb3c08d4d07b9ebe061605
This commit is contained in:
parent
55ce83b5e3
commit
806afda7ab
|
@ -33,8 +33,6 @@ function cleanupArticle( Revision $rev, $regexes, $match ) {
|
|||
$rev = false;
|
||||
}
|
||||
}
|
||||
$dbw = wfGetDB( DB_MASTER );
|
||||
$dbw->begin();
|
||||
if ( !$rev ) {
|
||||
// Didn't find a non-spammy revision, delete the page
|
||||
/*
|
||||
|
@ -53,7 +51,6 @@ function cleanupArticle( Revision $rev, $regexes, $match ) {
|
|||
}
|
||||
$wikiPage = new WikiPage( $title );
|
||||
$wikiPage->doEdit( $text, $comment );
|
||||
$dbw->commit();
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue