r46098 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46097‎ | r46098 | r46099 >
Date:20:23, 23 January 2009
Author:catrope
Status:ok
Tags:
Comment:
API: Fix profiling errors caused by calling wfProfileClose() from dieUsage()
Modified paths:
  • /trunk/phase3/includes/api/ApiBase.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiBase.php
@@ -635,6 +635,7 @@
636636 * Call main module's error handler
637637 */
638638 public function dieUsage($description, $errorCode, $httpRespCode = 0) {
 639+ wfProfileClose();
639640 throw new UsageException($description, $this->encodeParamName($errorCode), $httpRespCode);
640641 }
641642

Status & tagging log