X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FAjaxDispatcher.php;h=c2ea582e63a43fb16853b0eefa878f5d0ffa492f;hp=96892d710f9e81de1f67bc18fefb0b858c8834b7;hb=a2ea9f8b9289f197844e3282c2ac39e59c549996;hpb=8195fd3551c484cfe140fd54ac9c16c2d8c4bc4a diff --git a/includes/AjaxDispatcher.php b/includes/AjaxDispatcher.php index 96892d710f..c2ea582e63 100644 --- a/includes/AjaxDispatcher.php +++ b/includes/AjaxDispatcher.php @@ -135,6 +135,9 @@ class AjaxDispatcher { $result = new AjaxResponse( $result ); } + // Make sure DB commit succeeds before sending a response + wfGetLBFactory()->commitMasterChanges( __METHOD__ ); + $result->sendHeaders(); $result->printText();