r89458 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89457‎ | r89458 | r89459 >
Date:09:32, 4 June 2011
Author:nikerabbit
Status:deferred
Tags:
Comment:
Fix for r89457.
Modified paths:
  • /trunk/extensions/Translate/specials/SpecialMyLanguage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/specials/SpecialMyLanguage.php
@@ -57,7 +57,7 @@
5858 */
5959 public static function linkfix( $dummy, $target, &$html, &$customAttribs, &$query, &$options, &$ret ) {
6060 if ( $target->getNamespace() == NS_SPECIAL ) {
61 - list( $name, $subpage ) = SpecialPage::resolveAlias( $target->getDBkey() );
 61+ list( $name, $subpage ) = SpecialPage::resolveAliasWithSubpage( $target->getDBkey() );
6262 if ( $name === 'MyLanguage' ) {
6363 $realTarget = Title::newFromText( $subpage );
6464 if ( !$realTarget->exists() ) {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r89457Hack for making Special:MyLanguage links red if target doesn't existsnikerabbit09:29, 4 June 2011

Status & tagging log