Revision: 46098
Author:   catrope
Date:     2009-01-23 20:23:34 +0000 (Fri, 23 Jan 2009)

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

Modified Paths:
--------------
    trunk/phase3/includes/api/ApiBase.php

Modified: trunk/phase3/includes/api/ApiBase.php
===================================================================
--- trunk/phase3/includes/api/ApiBase.php       2009-01-23 20:13:39 UTC (rev 
46097)
+++ trunk/phase3/includes/api/ApiBase.php       2009-01-23 20:23:34 UTC (rev 
46098)
@@ -635,6 +635,7 @@
         * Call main module's error handler
         */
        public function dieUsage($description, $errorCode, $httpRespCode = 0) {
+               wfProfileClose();
                throw new UsageException($description, 
$this->encodeParamName($errorCode), $httpRespCode);
        }
 



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to