X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FStorage%2FPageUpdater.php;h=e25f0f06dd8e080ecccd37f9070bdc4ae00b22dd;hb=3074a4521a18e78e52ba44cc7c185bac7af4a866;hp=6cbdcc6e91fc6e5b4672e98bd5a5b41afbc6af1b;hpb=643830035dd0270e1096e0d6e72fc4109e07d498;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Storage/PageUpdater.php b/includes/Storage/PageUpdater.php index 6cbdcc6e91..e25f0f06dd 100644 --- a/includes/Storage/PageUpdater.php +++ b/includes/Storage/PageUpdater.php @@ -1104,10 +1104,10 @@ class PageUpdater { // TODO: move to storage service $newid = $wikiPage->insertOn( $dbw ); if ( $newid === false ) { - $dbw->endAtomic( __METHOD__ ); // nothing inserted + $dbw->endAtomic( __METHOD__ ); $status->fatal( 'edit-already-exists' ); - return $status; // nothing done + return $status; } // At this point we are now comitted to returning an OK