r92967 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92966‎ | r92967 | r92968 >
Date:21:12, 23 July 2011
Author:robin
Status:deferred
Tags:
Comment:
r92966 also for PageTranslation
Modified paths:
  • /trunk/extensions/Translate/tag/SpecialPageTranslation.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/tag/SpecialPageTranslation.php
@@ -380,7 +380,9 @@
381381
382382 if ( $s->type === 'changed' ) {
383383 $diff = new DifferenceEngine;
384 - $diff->setDiffLang( $wgContLang );
 384+ if( method_exists( 'DifferenceEngine', 'setDiffLang' ) ) {
 385+ $diff->setDiffLang( $wgContLang );
 386+ }
385387 $diff->setText( $s->getOldText(), $s->getText() );
386388 $text = $diff->getDiff( wfMsgHtml( 'tpt-diff-old' ), wfMsgHtml( 'tpt-diff-new' ) );
387389 $diff->showDiffStyle();
@@ -418,7 +420,9 @@
419421 $wgOut->wrapWikiMsg( '==$1==', 'tpt-sections-template' );
420422
421423 $diff = new DifferenceEngine;
422 - $diff->setDiffLang( $wgContLang );
 424+ if( method_exists( 'DifferenceEngine', 'setDiffLang' ) ) {
 425+ $diff->setDiffLang( $wgContLang );
 426+ }
423427 $diff->setText( $oldTemplate, $newTemplate );
424428 $text = $diff->getDiff( wfMsgHtml( 'tpt-diff-old' ), wfMsgHtml( 'tpt-diff-new' ) );
425429 $diff->showDiffStyle();

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r92966Make r92956 compatible with previous releases.robin21:10, 23 July 2011

Status & tagging log