From cd910c6544a40229f66b55ce7dc57d74c33435ec Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Fri, 23 Jan 2009 20:23:34 +0000 Subject: [PATCH] API: Fix profiling errors caused by calling wfProfileClose() from dieUsage() --- includes/api/ApiBase.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php index 06abc3c6d7..8afaae1b1d 100644 --- a/includes/api/ApiBase.php +++ b/includes/api/ApiBase.php @@ -635,6 +635,7 @@ abstract class ApiBase { * Call main module's error handler */ public function dieUsage($description, $errorCode, $httpRespCode = 0) { + wfProfileClose(); throw new UsageException($description, $this->encodeParamName($errorCode), $httpRespCode); } -- 2.20.1