From 44396ab47b120b81da6f75b6dfa5e10ea00e1002 Mon Sep 17 00:00:00 2001 From: Platonides Date: Sat, 18 Jun 2011 14:01:12 +0000 Subject: [PATCH] Follow up r90320. The purpose of wfProfileIn/Out is to profile the contents of the function. So it shall be the last instruction. --- includes/EditPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index e3e2c06d98..ce696951da 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -2091,7 +2091,6 @@ HTML '

' . htmlspecialchars( wfMsg( 'preview' ) ) . "

" . $wgOut->parse( $note ) . $conflict . "\n"; - wfProfileOut( __METHOD__ ); global $wgBetterDirectionality, $wgContLang; if( $wgBetterDirectionality ) { $getPageLang = $wgOut->parserOptions()->getTargetLanguage( $this->mTitle ); @@ -2099,6 +2098,7 @@ HTML $realBodyAttribs = array( 'lang' => $pageLang->getCode(), 'dir' => $pageLang->getDir() ); $previewHTML = Html::rawElement( 'div', $realBodyAttribs, $previewHTML ); } + wfProfileOut( __METHOD__ ); return $previewhead . $previewHTML . $this->previewTextAfterContent; } -- 2.20.1