From: Tim Starling Date: Tue, 28 Mar 2006 05:15:10 +0000 (+0000) Subject: don't double-profile redirects X-Git-Tag: 1.6.0~93 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=0ea2ad838b523f8a83fb2413d5ebe475e44a58a1;p=lhc%2Fweb%2Fwiklou.git don't double-profile redirects --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index aea3fefd1d..b8ab62e09c 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -459,7 +459,7 @@ class OutputPage { */ function output() { global $wgUser, $wgOutputEncoding; - global $wgContLanguageCode, $wgDebugRedirects, $wgMimeType, $wgProfiler; + global $wgContLanguageCode, $wgDebugRedirects, $wgMimeType; global $wgJsMimeType, $wgStylePath, $wgUseAjax, $wgScriptPath, $wgServer; if( $this->mDoNothing ){ @@ -500,7 +500,6 @@ class OutputPage { } else { header( 'Location: '.$this->mRedirect ); } - if ( isset( $wgProfiler ) ) { wfDebug( $wgProfiler->getOutput() ); } wfProfileOut( $fname ); return; }