dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e594cb0
)
Should've added $dbw->commit() here, hope this fixes bug 13587
author
Roan Kattouw
<catrope@users.mediawiki.org>
Wed, 2 Apr 2008 12:13:10 +0000
(12:13 +0000)
committer
Roan Kattouw
<catrope@users.mediawiki.org>
Wed, 2 Apr 2008 12:13:10 +0000
(12:13 +0000)
includes/api/ApiEditPage.php
patch
|
blob
|
history
diff --git
a/includes/api/ApiEditPage.php
b/includes/api/ApiEditPage.php
index
1f96122
..
dde5a1b
100644
(file)
--- a/
includes/api/ApiEditPage.php
+++ b/
includes/api/ApiEditPage.php
@@
-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: