X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FStorage%2FPageUpdater.php;h=e25f0f06dd8e080ecccd37f9070bdc4ae00b22dd;hb=895e1d8e030d671e0ea2cd8bde669a163a449f52;hp=6cbdcc6e91fc6e5b4672e98bd5a5b41afbc6af1b;hpb=023fec5d7b3a1a4b57d7bd3c555eeb06fd6bae22;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