This is cleaner, thanks to ialex
authorRoan Kattouw <catrope@users.mediawiki.org>
Wed, 2 Apr 2008 20:19:35 +0000 (20:19 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Wed, 2 Apr 2008 20:19:35 +0000 (20:19 +0000)
api.php

diff --git a/api.php b/api.php
index 1a44331..b856708 100644 (file)
--- a/api.php
+++ b/api.php
@@ -77,9 +77,7 @@ $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');