From: Niklas Laxström Date: Wed, 31 Oct 2007 11:30:15 +0000 (+0000) Subject: profiling calls X-Git-Tag: 1.31.0-rc.0~51038 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=f00e57c5804cec751a9856d6b59d81711357e26e;p=lhc%2Fweb%2Fwiklou.git profiling calls --- diff --git a/includes/EditPage.php b/includes/EditPage.php index b3170da5fe..ea6ecffe27 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -673,18 +673,18 @@ class EditPage { } if ( $wgFilterCallback && $wgFilterCallback( $this->mTitle, $this->textbox1, $this->section ) ) { # Error messages or other handling should be performed by the filter function - wfProfileOut( $fname ); wfProfileOut( "$fname-checks" ); + wfProfileOut( $fname ); return self::AS_FILTERING; } if ( !wfRunHooks( 'EditFilter', array( $this, $this->textbox1, $this->section, &$this->hookError ) ) ) { # Error messages etc. could be handled within the hook... - wfProfileOut( $fname ); wfProfileOut( "$fname-checks" ); + wfProfileOut( $fname ); return self::AS_HOOK_ERROR; } elseif( $this->hookError != '' ) { # ...or the hook could be expecting us to produce an error - wfProfileOut( "$fname-checks " ); + wfProfileOut( "$fname-checks" ); wfProfileOut( $fname ); return self::AS_HOOK_ERROR_EXPECTED; }