From c9be5f2d2d1aecb30019433572bb489e5f1bb6fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Sun, 8 Apr 2007 13:40:33 +0000 Subject: [PATCH] * Couple of more uses --- includes/Linker.php | 5 +---- includes/SpecialContributions.php | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/includes/Linker.php b/includes/Linker.php index 61288ec7be..96c71743d6 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -806,11 +806,8 @@ class Linker { * @private */ function userTalkLink( $userId, $userText ) { - global $wgLang; - $talkname = $wgLang->getNsText( NS_TALK ); # use the shorter name - $userTalkPage = Title::makeTitle( NS_USER_TALK, $userText ); - $userTalkLink = $this->makeLinkObj( $userTalkPage, $talkname ); + $userTalkLink = $this->makeLinkObj( $userTalkPage, wfMsgHtml( 'talkpagelinktext' ) ); return $userTalkLink; } diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index 2df568b612..3dbb1936a3 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -377,7 +377,7 @@ function wfSpecialContributions( $par = null ) { * @param $nt @see Title object for the target */ function contributionsSub( $nt ) { - global $wgSysopUserBans, $wgLang, $wgUser; + global $wgSysopUserBans, $wgUser; $sk = $wgUser->getSkin(); $id = User::idFromName( $nt->getText() ); @@ -390,7 +390,7 @@ function contributionsSub( $nt ) { $talk = $nt->getTalkPage(); if( $talk ) { # Talk page link - $tools[] = $sk->makeLinkObj( $talk, $wgLang->getNsText( NS_TALK ) ); + $tools[] = $sk->makeLinkObj( $talk, wfMsgHtml( 'talkpagelinktext' ) ); if( ( $id != 0 && $wgSysopUserBans ) || ( $id == 0 && User::isIP( $nt->getText() ) ) ) { # Block link if( $wgUser->isAllowed( 'block' ) ) -- 2.20.1