r90465 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90464‎ | r90465 | r90466 >
Date:15:17, 20 June 2011
Author:nikerabbit
Status:deferred
Tags:
Comment:
In Special:ManageGroups... remember the selection after timeout
Modified paths:
  • /trunk/extensions/Translate/specials/SpecialManageGroups.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/specials/SpecialManageGroups.php
@@ -277,8 +277,9 @@
278278 foreach ( $actions as $action ) {
279279 $label = wfMsg( "translate-manage-action-$action" );
280280 $name = MessageWebImporter::escapeNameForPHP( "action-$type-$key" );
 281+ $selected = $wgRequest->getVal( $name, $defaction );
281282 $id = Sanitizer::escapeId( "action-$key-$action" );
282 - $act[] = Xml::radioLabel( $label, $name, $action, $id, $action === $defaction );
 283+ $act[] = Xml::radioLabel( $label, $name, $action, $id, $action === $selected );
283284 }
284285 }
285286

Status & tagging log