r90468 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90467‎ | r90468 | r90469 >
Date:16:16, 20 June 2011
Author:nikerabbit
Status:deferred
Tags:
Comment:
Add anchors to make using the list a bit more nicer
Modified paths:
  • /trunk/extensions/Translate/specials/SpecialManageGroups.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/specials/SpecialManageGroups.php
@@ -88,7 +88,9 @@
8989
9090 wfDebug( __METHOD__ . ": {$group->getId()}\n" );
9191
92 - $link = $this->skin->link( $this->getTitle(), $group->getLabel(), array(), array( 'group' => $group->getId() ) );
 92+ $id = $group->getId();
 93+ $link = $this->skin->link( $this->getTitle(), $group->getLabel(),
 94+ array( 'id' => "mw-group-$id" ), array( 'group' => $id ) );
9395 $out = $link . $separator;
9496
9597 $cache = new MessageGroupCache( $group );
@@ -139,7 +141,7 @@
140142 protected function rebuildButton( $group, $codes, $from ) {
141143 $formParams = array(
142144 'method' => 'post',
143 - 'action' => $this->getTitle()->getLocalURL(),
 145+ 'action' => $this->getTitle()->getLocalURL() . '#mw-group-' . $group->getId(),
144146 );
145147
146148 $html =

Status & tagging log