r69052 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69051‎ | r69052 | r69053 >
Date:12:48, 5 July 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Fixed an issue which prevented syntax checks working with previews
Modified paths:
  • /trunk/extensions/Translate/TranslateEditAddons.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/TranslateEditAddons.php
@@ -235,6 +235,8 @@
236236 $th = new TranslationHelpers( $object->mTitle );
237237 if ( $object->firsttime && !$wgRequest->getCheck( 'oldid' ) && !$wgRequest->getCheck( 'undo' ) ) {
238238 $object->textbox1 = $th->getTranslation();
 239+ } else {
 240+ $th->setTranslation( $object->textbox1 );
239241 }
240242
241243 TranslateUtils::injectCSS();

Status & tagging log