Should've added $dbw->commit() here, hope this fixes bug 13587
authorRoan Kattouw <catrope@users.mediawiki.org>
Wed, 2 Apr 2008 12:13:10 +0000 (12:13 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Wed, 2 Apr 2008 12:13:10 +0000 (12:13 +0000)
includes/api/ApiEditPage.php

index 1f96122..dde5a1b 100644 (file)
@@ -146,7 +146,9 @@ class ApiEditPage extends ApiBase {
                # but that breaks API mode detection through is_null($wgTitle)
                global $wgTitle;
                $wgTitle = null;
+               $dbw = wfGetDb(DB_MASTER);
                $retval = $ep->internalAttemptSave($result, $wgUser->isAllowed('bot') && $params['bot']);
+               $dbw->commit();
                switch($retval)
                {
                        case EditPage::AS_HOOK_ERROR: