From: Roan Kattouw Date: Fri, 4 Apr 2008 13:49:56 +0000 (+0000) Subject: Actually, let's have that commit() call there anyway, the way it currently works... X-Git-Tag: 1.31.0-rc.0~48619 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=b384484503db9b782b3fc78a214f2c30cdd768e0;p=lhc%2Fweb%2Fwiklou.git Actually, let's have that commit() call there anyway, the way it currently works relies on the fact that internalAttemptSave() schedules deferred updates, which may change. --- diff --git a/includes/api/ApiEditPage.php b/includes/api/ApiEditPage.php index 8d62a44bc5..af8ad19379 100644 --- a/includes/api/ApiEditPage.php +++ b/includes/api/ApiEditPage.php @@ -147,7 +147,9 @@ class ApiEditPage extends ApiBase { global $wgTitle; $wgTitle = null; $dbw = wfGetDb(DB_MASTER); + $dbw->begin(); $retval = $ep->internalAttemptSave($result, $wgUser->isAllowed('bot') && $params['bot']); + ` $dbw->commit(); switch($retval) { case EditPage::AS_HOOK_ERROR: