Removed useless begin/commit calls from CLI script

Change-Id: I87447b67de7f1f99c5fb3c08d4d07b9ebe061605
This commit is contained in:
Aaron Schulz 2015-12-08 13:48:08 -08:00
parent 55ce83b5e3
commit 806afda7ab

View file

@ -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();
}
//------------------------------------------------------------------------------