From baf7fdc2d224cc4bca29cd1463bcabc681578333 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sat, 29 Oct 2005 00:27:53 +0000 Subject: [PATCH] * (bug 3391) Display a link to the talk page in the default signiture --- includes/Parser.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/Parser.php b/includes/Parser.php index 4cc0c7d14e..74d00a1dc9 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -3096,7 +3096,10 @@ class Parser if( $user->getOption( 'fancysig' ) ) { $sigText = $k; } else { - $sigText = '[[' . $wgContLang->getNsText( NS_USER ) . ":$n|$k]]"; + $ns_user = $wgContLang->getFormattedNsText( NS_USER ); + $ns_talk = $wgContLang->getFormattedNsText( NS_TALK ); + $ns_user_talk = $wgContLang->getFormattedNsText( NS_USER_TALK ); + $sigText = "[[$ns_user:$n|$k]] ([[$ns_user_talk:$n|$ns_talk]])"; } $text = preg_replace( '/~~~~~/', $d, $text ); $text = preg_replace( '/~~~~/', "$sigText $d", $text ); -- 2.20.1