Index: trunk/extensions/Translate/utils/TranslationHelpers.php |
— | — | @@ -902,7 +902,9 @@ |
903 | 903 | } |
904 | 904 | |
905 | 905 | $diff = new DifferenceEngine; |
906 | | - $diff->setDiffLang( $this->group->getSourceLanguage() ); |
| 906 | + if( method_exists( 'DifferenceEngine', 'setDiffLang' ) ) { |
| 907 | + $diff->setDiffLang( $this->group->getSourceLanguage() ); |
| 908 | + } |
907 | 909 | $diff->setText( $oldtext, $newtext ); |
908 | 910 | $diff->setReducedLineNumbers(); |
909 | 911 | $diff->showDiffStyle(); |
— | — | @@ -952,7 +954,9 @@ |
953 | 955 | } |
954 | 956 | |
955 | 957 | $diff = new DifferenceEngine; |
956 | | - $diff->setDiffLang( $this->group->getSourceLanguage() ); |
| 958 | + if( method_exists( 'DifferenceEngine', 'setDiffLang' ) ) { |
| 959 | + $diff->setDiffLang( $this->group->getSourceLanguage() ); |
| 960 | + } |
957 | 961 | $diff->setText( $oldtext, $newtext ); |
958 | 962 | $diff->setReducedLineNumbers(); |
959 | 963 | $diff->showDiffStyle(); |