X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=api.php;h=d63f2540db8baf1293eabca24b6e003f65b810e2;hb=bbcd4b128cb7350ee65190e601b8d636e109f43b;hp=74ee775bbe9f8021b1f4e52370cea090c058d9ac;hpb=cad7a1125dc910b8ee19c8f675099ed65c0a6018;p=lhc%2Fweb%2Fwiklou.git diff --git a/api.php b/api.php index 74ee775bbe..d63f2540db 100644 --- a/api.php +++ b/api.php @@ -42,7 +42,6 @@ if ( !function_exists( 'version_compare' ) || version_compare( PHP_VERSION, '5.3 require __DIR__ . '/includes/WebStart.php'; -wfProfileIn( 'api.php' ); $starttime = microtime( true ); // URL safety checks @@ -72,7 +71,7 @@ try { // Last chance hook before executing the API wfRunHooks( 'ApiBeforeMain', array( &$processor ) ); if ( !$processor instanceof ApiMain ) { - throw new MWException( 'ApiBeforMain hook set $processor to a non-ApiMain class' ); + throw new MWException( 'ApiBeforeMain hook set $processor to a non-ApiMain class' ); } } catch ( Exception $e ) { // Crap. Try to report the exception in API format to be friendly to clients. @@ -94,7 +93,6 @@ DeferredUpdates::doUpdates(); // Log what the user did, for book-keeping purposes. $endtime = microtime( true ); -wfProfileOut( 'api.php' ); wfLogProfilingData(); @@ -122,7 +120,7 @@ if ( $wgAPIRequestLog ) { } else { $items[] = "failed in ApiBeforeMain"; } - wfErrorLog( implode( ',', $items ) . "\n", $wgAPIRequestLog ); + MWLoggerLegacyLogger::emit( implode( ',', $items ) . "\n", $wgAPIRequestLog ); wfDebug( "Logged API request to $wgAPIRequestLog\n" ); }