From: Rob Church Date: Wed, 22 Mar 2006 22:03:09 +0000 (+0000) Subject: Use the new unified functions for building user tools links. X-Git-Tag: 1.6.0~163 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%20%22id_auteur=%24id%22%29%20.%20%22?a=commitdiff_plain;h=977597a3491de70ac17fa99a71850b07b40280cf;p=lhc%2Fweb%2Fwiklou.git Use the new unified functions for building user tools links. --- 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;