From: Brion Vibber Date: Fri, 16 Sep 2005 05:08:42 +0000 (+0000) Subject: * (bug 3475) anon contrib links on Special:Newpages X-Git-Tag: 1.6.0~1635 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=899cc7f321ea5f5508e996d97474c11e2e78ef5a;p=lhc%2Fweb%2Fwiklou.git * (bug 3475) anon contrib links on Special:Newpages --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 4425932b48..5f15b0b92c 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -108,6 +108,7 @@ fully support the editing toolbar, but was found to be too confusing. format as designed. Documentation comments updated. * (bug 1423) LanguageJa.php update * Clean up duplicate code for selection of changeslist style +* (bug 3475) anon contrib links on Special:Newpages === Caveats === diff --git a/includes/SpecialNewpages.php b/includes/SpecialNewpages.php index feb4c54105..3b24cc2a1d 100644 --- a/includes/SpecialNewpages.php +++ b/includes/SpecialNewpages.php @@ -62,11 +62,13 @@ class NewPagesPage extends QueryPage { $length = wfMsg( 'nbytes', $wgLang->formatNum( $result->length ) ); if ( $u == 0 ) { # not by a logged-in user - $ul = $ut; - } - else { - $ul = $skin->makeLink( $wgContLang->getNsText(NS_USER) . ":{$ut}", $ut ); + $userPage = Title::makeTitle( NS_SPECIAL, 'Contributions' ); + $linkParams = 'target=' . urlencode( $ut ); + } else { + $userPage = Title::makeTitle( NS_USER, $ut ); + $linkParams = ''; } + $ul = $skin->makeLinkObj( $userPage, htmlspecialchars( $ut ), $linkParams ); $d = $wgLang->timeanddate( $result->timestamp, true );