r92966 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92965‎ | r92966 | r92967 >
Date:21:10, 23 July 2011
Author:robin
Status:deferred
Tags:
Comment:
Make r92956 compatible with previous releases.
Modified paths:
  • /trunk/extensions/Translate/utils/TranslationHelpers.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/utils/TranslationHelpers.php
@@ -902,7 +902,9 @@
903903 }
904904
905905 $diff = new DifferenceEngine;
906 - $diff->setDiffLang( $this->group->getSourceLanguage() );
 906+ if( method_exists( 'DifferenceEngine', 'setDiffLang' ) ) {
 907+ $diff->setDiffLang( $this->group->getSourceLanguage() );
 908+ }
907909 $diff->setText( $oldtext, $newtext );
908910 $diff->setReducedLineNumbers();
909911 $diff->showDiffStyle();
@@ -952,7 +954,9 @@
953955 }
954956
955957 $diff = new DifferenceEngine;
956 - $diff->setDiffLang( $this->group->getSourceLanguage() );
 958+ if( method_exists( 'DifferenceEngine', 'setDiffLang' ) ) {
 959+ $diff->setDiffLang( $this->group->getSourceLanguage() );
 960+ }
957961 $diff->setText( $oldtext, $newtext );
958962 $diff->setReducedLineNumbers();
959963 $diff->showDiffStyle();

Follow-up revisions

RevisionCommit summaryAuthorDate
r92967r92966 also for PageTranslationrobin21:12, 23 July 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r92956DifferenceEngine: introduce setDiffLang() to change the language in which the...robin19:03, 23 July 2011

Status & tagging log