Merge "Use correct module name for stats in executeActionWithErrorHandling()"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 25 May 2016 23:31:53 +0000 (23:31 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 25 May 2016 23:31:53 +0000 (23:31 +0000)
includes/api/ApiMain.php

index 60f2832..7f9b98b 100644 (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 );