// Custom edit intro for new sections
$this->section === 'new' ? 'MediaWiki:addsection-editintro' : '' );
- wfProfileOut( __METHOD__ );
-
// Allow extensions to modify form data
wfRunHooks( 'EditPage::importFormData', array( $this, $request ) );
+
+ wfProfileOut( __METHOD__ );
}
/**
URL=$url2
CONTROL;
echo( $control );
+
+ wfProfileOut( __METHOD__ );
return;
}
$this->mCacheHit = true;
// Check if the diff should be hidden from this user
if ( !$this->loadRevisionData() ) {
+ wfProfileOut( __METHOD__ );
return false;
} elseif ( $this->mOldRev && !$this->mOldRev->userCan( Revision::DELETED_TEXT ) ) {
+ wfProfileOut( __METHOD__ );
return false;
} elseif ( $this->mNewRev && !$this->mNewRev->userCan( Revision::DELETED_TEXT ) ) {
+ wfProfileOut( __METHOD__ );
return false;
}
// Short-circuit
if ( $this->mOldRev && $this->mNewRev
&& $this->mOldRev->getID() == $this->mNewRev->getID() )
{
+ wfProfileOut( __METHOD__ );
return '';
}
// Cacheable?
wfProfileOut( __METHOD__ . "-shellexec" );
unlink( $tempName1 );
unlink( $tempName2 );
+ wfProfileOut( __METHOD__ );
return $difftext;
}
$nta = explode( "\n", $wgContLang->segmentForDiff( $ntext ) );
$diffs = new Diff( $ota, $nta );
$formatter = new TableDiffFormatter();
- return $wgContLang->unsegmentForDiff( $formatter->format( $diffs ) ) .
+ $difftext = $wgContLang->unsegmentForDiff( $formatter->format( $diffs ) ) .
+ wfProfileOut( __METHOD__ );
+ return $difftext;
$this->debug();
}