From 977597a3491de70ac17fa99a71850b07b40280cf Mon Sep 17 00:00:00 2001 From: Rob Church Date: Wed, 22 Mar 2006 22:03:09 +0000 Subject: [PATCH] Use the new unified functions for building user tools links. --- includes/SpecialNewpages.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/includes/SpecialNewpages.php b/includes/SpecialNewpages.php index 089ce44430..37de1b6822 100644 --- a/includes/SpecialNewpages.php +++ b/includes/SpecialNewpages.php @@ -77,12 +77,6 @@ class NewPagesPage extends QueryPage { $ut = $result->user_text; $length = wfMsgHtml( 'nbytes', htmlspecialchars( $wgLang->formatNum( $result->length ) ) ); - - $userLink = $skin->makeLinkObj( Title::makeTitle( NS_USER, $ut ), htmlspecialchars( $ut ) ); - $talkLink = $skin->makeLinkObj( Title::makeTitle( NS_USER_TALK, $ut ), htmlspecialchars( $wgLang->getNsText( NS_TALK ) ) ); - $contLink = $skin->makeKnownLinkObj( Title::makeTitle( NS_SPECIAL, "Contributions/$ut" ), wfMsgHtml( 'contribslink' ) ); - $userTools = "$userLink ($talkLink | $contLink)"; - $d = $wgLang->timeanddate( $result->timestamp, true ); # Since there is no diff link, we need to give users a way to @@ -94,6 +88,8 @@ class NewPagesPage extends QueryPage { $link = $skin->makeKnownLink( $ns . ':' . $result->title, '' ); } + $userTools = $skin->userLink( $u, $ut ) . $skin->userToolLinks( $u, $ut ); + $s = "{$d} {$link} ({$length}) . . {$userTools}"; $s .= $skin->commentBlock( $result->comment ); return $s; -- 2.20.1