From: Brion Vibber Date: Sun, 5 Jun 2005 07:55:54 +0000 (+0000) Subject: * (bug 2329) Fix title formatting in several special pages X-Git-Tag: 1.5.0beta1~222 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=173eb862d3109c1c86563cde56bb10a8cca06c6e;p=lhc%2Fweb%2Fwiklou.git * (bug 2329) Fix title formatting in several special pages --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 42ccc3a353..d1fc875d71 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -261,7 +261,11 @@ Various bugfixes, small features, and a few experimental things: * (bug 814) Integrate AuthPlugin changes to support Ryan Lane's external LDAP authentication plugin * (bug 2034) Armor HTML attributes against template inclusion and links munging + +=== Changes since 1.5alpha2 === + * (bug 2319) Fix parse hook tag matching +* (bug 2329) Fix title formatting in several special pages === Caveats === diff --git a/includes/QueryPage.php b/includes/QueryPage.php index 3e37e37b7e..4dd83db319 100644 --- a/includes/QueryPage.php +++ b/includes/QueryPage.php @@ -387,7 +387,7 @@ class PageQueryPage extends QueryPage { function formatResult( $skin, $result ) { global $wgContLang; $nt = Title::makeTitle( $result->namespace, $result->title ); - return $skin->makeKnownLinkObj( $nt, $wgContLang->convert( $result->title ) ); + return $skin->makeKnownLinkObj( $nt, $wgContLang->convert( $nt->getPrefixedText() ) ); } } diff --git a/includes/SpecialAncientpages.php b/includes/SpecialAncientpages.php index 991fed3a28..4d676036cd 100644 --- a/includes/SpecialAncientpages.php +++ b/includes/SpecialAncientpages.php @@ -50,7 +50,8 @@ class AncientPagesPage extends QueryPage { global $wgLang, $wgContLang; $d = $wgLang->timeanddate( wfTimestamp( TS_MW, $result->value ), true ); - $link = $skin->makeKnownLink( $result->title, $wgContLang->convert( $result->title) ); + $title = Title::makeTitle( $result->namespace, $result->title ); + $link = $skin->makeKnownLinkObj( $title, $wgContLang->convert( $title->getPrefixedText() ) ); return "{$link} ({$d})"; } } diff --git a/includes/SpecialPopularpages.php b/includes/SpecialPopularpages.php index 4e1a0881eb..930e3e9c3f 100644 --- a/includes/SpecialPopularpages.php +++ b/includes/SpecialPopularpages.php @@ -42,7 +42,8 @@ class PopularPagesPage extends QueryPage { function formatResult( $skin, $result ) { global $wgLang, $wgContLang; - $link = $skin->makeKnownLink( $result->title, $wgContLang->convert( $result->title ) ); + $title = Title::makeTitle( $result->namespace, $result->title ); + $link = $skin->makeKnownLinkObj( $title, $wgContLang->convert( $title->getPrefixedText() ) ); $nv = wfMsg( "nviews", $wgLang->formatNum( $result->value ) ); return "{$link} ({$nv})"; }