r54358 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r54357‎ | r54358 | r54359 >
Date:12:37, 4 August 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
Unbreak undo
Modified paths:
  • /trunk/extensions/Translate/TranslateEditAddons.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/TranslateEditAddons.php
@@ -291,7 +291,7 @@
292292 $translation = $xx;
293293 }
294294
295 - if ( $object->firsttime && !$wgRequest->getCheck( 'oldid' ) ) {
 295+ if ( $object->firsttime && !$wgRequest->getCheck( 'oldid' ) && !$wgRequest->getCheck( 'undo' ) ) {
296296 $object->textbox1 = $translation;
297297 } else {
298298 $translation = $object->textbox1;

Status & tagging log