Index: trunk/phase3/includes/SpecialUndelete.php |
— | — | @@ -479,14 +479,10 @@ |
480 | 480 | $undelete =& Title::makeTitle( NS_SPECIAL, 'Undelete' ); |
481 | 481 | $wgOut->addHTML( "<ul>\n" ); |
482 | 482 | while( $row = $result->fetchObject() ) { |
483 | | - $n = ($row->ar_namespace ? |
484 | | - ($wgContLang->getNsText( $row->ar_namespace ) . ":") : ""). |
485 | | - $row->ar_title; |
486 | | - $link = $sk->makeKnownLinkObj( $undelete, |
487 | | - htmlspecialchars( $n ), "target=" . urlencode( $n ) ); |
488 | | - $revisions = htmlspecialchars( wfMsg( "undeleterevisions", |
489 | | - $wgLang->formatNum( $row->count ) ) ); |
490 | | - $wgOut->addHTML( "<li>$link ($revisions)</li>\n" ); |
| 483 | + $title = Title::makeTitleSafe( $row->ar_namespace, $row->ar_title ); |
| 484 | + $link = $sk->makeKnownLinkObj( $undelete, htmlspecialchars( $title->getPrefixedText() ), 'target=' . $title->getPartialUrl() ); |
| 485 | + $revs = wfMsgHtml( 'undeleterevisions', $wgLang->formatNum( $row->count ) ); |
| 486 | + $wgOut->addHtml( "<li>{$link} ({$revs})</li>\n" ); |
491 | 487 | } |
492 | 488 | $result->free(); |
493 | 489 | $wgOut->addHTML( "</ul>\n" ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -171,6 +171,7 @@ |
172 | 172 | of disambiguation templates. |
173 | 173 | * [[Special:Disambiguations]] now shows pages in NS:0 that link to any pages that embed |
174 | 174 | any of the templates listed at [[MediaWiki:Disambiguationspage]]. |
| 175 | +* Fix formatting of titles on Special:Undelete |
175 | 176 | |
176 | 177 | == Languages updated == |
177 | 178 | |