Index: trunk/extensions/Translate/tag/SpecialPageTranslation.php |
— | — | @@ -380,7 +380,9 @@ |
381 | 381 | |
382 | 382 | if ( $s->type === 'changed' ) { |
383 | 383 | $diff = new DifferenceEngine; |
384 | | - $diff->setDiffLang( $wgContLang ); |
| 384 | + if( method_exists( 'DifferenceEngine', 'setDiffLang' ) ) { |
| 385 | + $diff->setDiffLang( $wgContLang ); |
| 386 | + } |
385 | 387 | $diff->setText( $s->getOldText(), $s->getText() ); |
386 | 388 | $text = $diff->getDiff( wfMsgHtml( 'tpt-diff-old' ), wfMsgHtml( 'tpt-diff-new' ) ); |
387 | 389 | $diff->showDiffStyle(); |
— | — | @@ -418,7 +420,9 @@ |
419 | 421 | $wgOut->wrapWikiMsg( '==$1==', 'tpt-sections-template' ); |
420 | 422 | |
421 | 423 | $diff = new DifferenceEngine; |
422 | | - $diff->setDiffLang( $wgContLang ); |
| 424 | + if( method_exists( 'DifferenceEngine', 'setDiffLang' ) ) { |
| 425 | + $diff->setDiffLang( $wgContLang ); |
| 426 | + } |
423 | 427 | $diff->setText( $oldTemplate, $newTemplate ); |
424 | 428 | $text = $diff->getDiff( wfMsgHtml( 'tpt-diff-old' ), wfMsgHtml( 'tpt-diff-new' ) ); |
425 | 429 | $diff->showDiffStyle(); |