Follow up r90320. The purpose of wfProfileIn/Out is to profile
authorPlatonides <platonides@users.mediawiki.org>
Sat, 18 Jun 2011 14:01:12 +0000 (14:01 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sat, 18 Jun 2011 14:01:12 +0000 (14:01 +0000)
the contents of the function. So it shall be the last instruction.

includes/EditPage.php

index e3e2c06..ce69695 100644 (file)
@@ -2091,7 +2091,6 @@ HTML
                        '<h2 id="mw-previewheader">' . htmlspecialchars( wfMsg( 'preview' ) ) . "</h2>" .
                        $wgOut->parse( $note ) . $conflict . "</div>\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;
        }