Actually, let's have that commit() call there anyway, the way it currently works...
authorRoan Kattouw <catrope@users.mediawiki.org>
Fri, 4 Apr 2008 13:49:56 +0000 (13:49 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Fri, 4 Apr 2008 13:49:56 +0000 (13:49 +0000)
includes/api/ApiEditPage.php

index 8d62a44..af8ad19 100644 (file)
@@ -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: