r47662 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47661‎ | r47662 | r47663 >
Date:14:18, 22 February 2009
Author:nikerabbit
Status:ok
Tags:
Comment:
* Remember language
Modified paths:
  • /trunk/extensions/Translate/TranslatePage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/TranslatePage.php
@@ -405,7 +405,11 @@
406406 $id = $block->getId();
407407
408408 $title = $this->getTitle();
409 - $edit = $wgUser->getSkin()->makeKnownLinkObj( $title, wfMsgHtml( self::MSG . 'edit' ), "group=$id" );
 409+
 410+ $code = $this->options['language'];
 411+ $extra = "group=$id&language=$code" ;
 412+
 413+ $edit = $wgUser->getSkin()->makeKnownLinkObj( $title, wfMsgHtml( self::MSG . 'edit' ), $extra );
410414 $label = htmlspecialchars( $block->getLabel() ) . " ($edit)";
411415 $desc = $this->getGroupDescription( $block );
412416 $hasSubblocks = is_array( $blocks ) && count( $blocks );

Status & tagging log