From 819bda343ee51fc55efcd1992d2019968ac939ba Mon Sep 17 00:00:00 2001 From: Raimond Spekking Date: Thu, 12 Jul 2007 08:43:46 +0000 Subject: [PATCH] Use appropriate message for talk page links. Localization was broken for user language != content language --- includes/WatchlistEditor.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/WatchlistEditor.php b/includes/WatchlistEditor.php index abd79248a5..2ad32bb028 100644 --- a/includes/WatchlistEditor.php +++ b/includes/WatchlistEditor.php @@ -132,7 +132,7 @@ class WatchlistEditor { * @param Skin $skin */ private function showTitles( $titles, $output, $skin ) { - $talk = htmlspecialchars( $GLOBALS['wgContLang']->getFormattedNsText( NS_TALK ) ); + $talk = wfMsgHtml( 'talkpagelinktext' ); // Do a batch existence check $batch = new LinkBatch(); foreach( $titles as $title ) { @@ -410,8 +410,7 @@ class WatchlistEditor { $link = $skin->makeLinkObj( $title ); if( $redirect ) $link = '' . $link . ''; - $tools[] = $skin->makeLinkObj( $title->getTalkPage(), - htmlspecialchars( $GLOBALS['wgContLang']->getFormattedNsText( NS_TALK ) ) ); + $tools[] = $skin->makeLinkObj( $title->getTalkPage(), wfMsgHtml( 'talkpagelinktext' ) ); if( $title->exists() ) $tools[] = $skin->makeKnownLinkObj( $title, wfMsgHtml( 'history_short' ), 'action=history' ); return '
  • ' -- 2.20.1