X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=api.php;h=889c5f10a2a2dc1a3f4782184b7892997fc462e1;hb=17a7b25a30fb09b8b1cc482b11d74e8c2a4e9173;hp=7aef1eb9921ce84e262ca68954edb4d7a89e900e;hpb=77a3987052aac525658377b702483ff8f3e431c6;p=lhc%2Fweb%2Fwiklou.git diff --git a/api.php b/api.php index 7aef1eb992..889c5f10a2 100644 --- a/api.php +++ b/api.php @@ -45,7 +45,7 @@ if ( !function_exists( 'version_compare' ) || version_compare( phpversion(), '5. // Initialise common code. if ( isset( $_SERVER['MW_COMPILED'] ) ) { - require ( 'phase3/includes/WebStart.php' ); + require ( 'core/includes/WebStart.php' ); } else { require ( dirname( __FILE__ ) . '/includes/WebStart.php' ); } @@ -68,11 +68,13 @@ if ( !$wgEnableAPI ) { // Selectively allow cross-site AJAX -/* +/** * Helper function to convert wildcard string into a regex * '*' => '.*?' * '?' => '.' - * @ return string + * + * @param $search string + * @return string */ function convertWildcard( $search ) { $search = preg_quote( $search, '/' ); @@ -115,7 +117,7 @@ $processor = new ApiMain( $wgRequest, $wgEnableWriteAPI ); $processor->execute(); // Execute any deferred updates -wfDoUpdates(); +DeferredUpdates::doUpdates(); // Log what the user did, for book-keeping purposes. $endtime = microtime( true );