From 542640f4e2ece03a61ba9e956f235f793ac3fc56 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 25 May 2016 12:31:19 -0700 Subject: [PATCH] Use correct module name for stats in executeActionWithErrorHandling() Change-Id: I7d300525c32877d6fcc940962c93b932dc4c9181 --- includes/api/ApiMain.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); -- 2.20.1