mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
Merge "Replace Revision::getText()"
This commit is contained in:
commit
cceca02a60
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue