From: Aaron Schulz Date: Wed, 25 May 2016 19:31:19 +0000 (-0700) Subject: Use correct module name for stats in executeActionWithErrorHandling() X-Git-Tag: 1.31.0-rc.0~6823^2 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=542640f4e2ece03a61ba9e956f235f793ac3fc56;p=lhc%2Fweb%2Fwiklou.git Use correct module name for stats in executeActionWithErrorHandling() Change-Id: I7d300525c32877d6fcc940962c93b932dc4c9181 --- diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index 60f2832320..7f9b98b5d1 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -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 );