r52022 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52021‎ | r52022 | r52023 >
Date:06:45, 17 June 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
* Leave the edit area alone if editing older revisions...
Modified paths:
  • /trunk/extensions/Translate/TranslateEditAddons.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/TranslateEditAddons.php
@@ -252,7 +252,7 @@
253253
254254 private static function editBoxes( $object ) {
255255 wfLoadExtensionMessages( 'Translate' );
256 - global $wgTranslateDocumentationLanguageCode, $wgOut;
 256+ global $wgTranslateDocumentationLanguageCode, $wgOut, $wgRequest;
257257
258258 list( $key, $code, $group ) = self::getKeyCodeGroup( $object->mTitle );
259259 if ( $group === null ) return;
@@ -370,7 +370,7 @@
371371 $translation = $xx;
372372 }
373373
374 - if ( $object->firsttime ) {
 374+ if ( $object->firsttime && !$wgRequest->getCheck( 'oldid' ) ) {
375375 $object->textbox1 = $translation;
376376 }
377377

Status & tagging log