* Couple of more uses
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Sun, 8 Apr 2007 13:40:33 +0000 (13:40 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Sun, 8 Apr 2007 13:40:33 +0000 (13:40 +0000)
includes/Linker.php
includes/SpecialContributions.php

index 61288ec..96c7174 100644 (file)
@@ -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;
        }
 
index 2df568b..3dbb193 100644 (file)
@@ -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' ) )