dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update (Postgres) mediawiki_version table.
[lhc/web/wiklou.git]
/
api.php
diff --git
a/api.php
b/api.php
index
1a44331
..
77dc52a
100644
(file)
--- a/
api.php
+++ b/
api.php
@@
-77,11
+77,12
@@
$processor = new ApiMain($wgRequest, $wgEnableWriteAPI);
$processor->execute();
// Execute any deferred updates
$processor->execute();
// Execute any deferred updates
-$mediawiki = new MediaWiki();
-$mediawiki->doUpdates($wgDeferredUpdateList);
-$mediawiki->doUpdates($wgPostCommitUpdateList);
+wfDoUpdates();
// Log what the user did, for book-keeping purposes.
wfProfileOut('api.php');
wfLogProfilingData();
// Log what the user did, for book-keeping purposes.
wfProfileOut('api.php');
wfLogProfilingData();
+// Shut down the database
+wfGetLBFactory()->shutdown();
+