Cleanup to r39058. Slightly less code than before. Same result :)
[lhc/web/wiklou.git] / api.php
diff --git a/api.php b/api.php
index ce445ef..77dc52a 100644 (file)
--- a/api.php
+++ b/api.php
@@ -76,7 +76,13 @@ $processor = new ApiMain($wgRequest, $wgEnableWriteAPI);
 // Process data & print results
 $processor->execute();
 
+// Execute any deferred updates
+wfDoUpdates();
+
 // Log what the user did, for book-keeping purposes.
 wfProfileOut('api.php');
 wfLogProfilingData();
 
+// Shut down the database
+wfGetLBFactory()->shutdown();
+