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
-$mediawiki = new MediaWiki();
-$mediawiki->doUpdates($wgDeferredUpdateList);
-$mediawiki->doUpdates($wgPostCommitUpdateList);
+wfDoUpdates();
 
 // Log what the user did, for book-keeping purposes.
 wfProfileOut('api.php');
 wfLogProfilingData();
 
+// Shut down the database
+wfGetLBFactory()->shutdown();
+