API: Fix profiling errors caused by calling wfProfileClose() from dieUsage()

This commit is contained in:
Roan Kattouw 2009-01-23 20:23:34 +00:00
parent 393f3041dd
commit cd910c6544

View file

@ -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);
}