r54606 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r54605‎ | r54606 | r54607 >
Date:21:15, 7 August 2009
Author:mrzman
Status:deferred
Tags:
Comment:
Fix title normalization
Modified paths:
  • /trunk/extensions/IndexFunction/SpecialIndex.php (modified) (history)

Diff [purge]

Index: trunk/extensions/IndexFunction/SpecialIndex.php
@@ -26,8 +26,9 @@
2727 return $ret;
2828 } else {
2929 $ret = Xml::openElement( 'tr' );
 30+ $targettitle = Title::makeTitle( $row->ns, $row->title );
3031 $title = SpecialPage::getTitleFor( 'Index', $row->title );
31 - $link = $sk->link( $title, $row->title, array( 'class'=>'mw-index' ), array(), array( 'known', 'noclasses' ) );
 32+ $link = $sk->link( $title, $targettitle->getPrefixedText(), array( 'class'=>'mw-index' ), array(), array( 'known', 'noclasses' ) );
3233
3334 $jsid = $this->mJSid;
3435 $expandTitle = wfMsgHtml( 'index-expand-detail' );

Status & tagging log