* Skins can now be previewed in preferences
* (bug 2943) AuthPlugin::getCanonicalName() name canonicalization hook,
patch from robla
+* Wrap revision insert & page update in a transaction, rollback on late
+ edit conflict.
=== Caveats ===
'minor_edit' => $isminor,
'text' => $text
) );
+
+ $dbw->begin();
$revisionId = $revision->insertOn( $dbw );
# Update page
if( !$ok ) {
/* Belated edit conflict! Run away!! */
$good = false;
+ $dbw->rollback();
} else {
# Update recentchanges and purge cache and whatnot
$bot = (int)($wgUser->isBot() || $forceBot);
$lastRevision, $this->getTimestamp(), $bot, '', $oldsize, $newsize,
$revisionId );
Article::onArticleEdit( $this->mTitle );
+ $dbw->commit();
}
}