From: Platonides Date: Sat, 18 Jun 2011 14:01:12 +0000 (+0000) Subject: Follow up r90320. The purpose of wfProfileIn/Out is to profile X-Git-Tag: 1.31.0-rc.0~29448 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/supprimer.php?a=commitdiff_plain;h=44396ab47b120b81da6f75b6dfa5e10ea00e1002;p=lhc%2Fweb%2Fwiklou.git Follow up r90320. The purpose of wfProfileIn/Out is to profile the contents of the function. So it shall be the last instruction. --- 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; }