Merge "Use correct module name for stats in executeActionWithErrorHandling()"

This commit is contained in:
jenkins-bot 2016-05-25 23:31:53 +00:00 committed by Gerrit Code Review
commit 61ac2e2d0e

View file

@ -471,7 +471,8 @@ class ApiMain extends ApiBase {
$this->logRequest( $runTime );
if ( $this->mModule->isWriteMode() && $this->getRequest()->wasPosted() ) {
$this->getStats()->timing(
'api.' . $this->getModuleName() . '.executeTiming', 1000 * $runTime );
'api.' . $this->mModule->getModuleName() . '.executeTiming', 1000 * $runTime
);
}
} catch ( Exception $e ) {
$this->handleException( $e );