Merge "Replace Revision::getText()"

This commit is contained in:
jenkins-bot 2016-10-05 00:15:59 +00:00 committed by Gerrit Code Review
commit cceca02a60

View file

@ -415,11 +415,14 @@ abstract class EchoDiscussionParser {
if ( $revision->getParentId() ) {
$prevRevision = Revision::newFromId( $revision->getParentId() );
if ( $prevRevision ) {
$prevText = $prevRevision->getText();
$prevText = ContentHandler::getContentText( $prevRevision->getContent() );
}
}
$changes = self::getMachineReadableDiff( $prevText, $revision->getText() );
$changes = self::getMachineReadableDiff(
$prevText,
ContentHandler::getContentText( $revision->getContent() )
);
$output = self::interpretDiff( $changes, $user->getName(), $revision->getTitle() );
self::$revisionInterpretationCache[$revision->getId()] = $output;