Index: trunk/extensions/Translate/tag/SpecialPageTranslation.php |
— | — | @@ -386,6 +386,9 @@ |
387 | 387 | |
388 | 388 | $wgOut->wrapWikiMsg( '==$1==', 'tpt-sections-oldnew' ); |
389 | 389 | |
| 390 | + $diffOld = wfMsgHtml( 'tpt-diff-old' ); |
| 391 | + $diffNew = wfMsgHtml( 'tpt-diff-new' ); |
| 392 | + |
390 | 393 | foreach ( $sections as $s ) { |
391 | 394 | if ( $s->type === 'new' ) { |
392 | 395 | $input = Xml::input( 'tpt-sect-' . $s->id, 15, $s->name ); |
— | — | @@ -401,7 +404,8 @@ |
402 | 405 | } |
403 | 406 | $diff->setReducedLineNumbers(); |
404 | 407 | $diff->setText( $s->getOldText(), $s->getText() ); |
405 | | - $text = $diff->getDiff( wfMsgHtml( 'tpt-diff-old' ), wfMsgHtml( 'tpt-diff-new' ) ); |
| 408 | + $text = $diff->getDiff( $diffOld, $diffNew ); |
| 409 | + $diffOld = $diffNew = null; |
406 | 410 | $diff->showDiffStyle(); |
407 | 411 | |
408 | 412 | $id = "tpt-sect-{$s->id}-action-nofuzzy"; |