From: Ævar Arnfjörð Bjarmason Date: Sat, 29 Oct 2005 00:27:53 +0000 (+0000) Subject: * (bug 3391) Display a link to the talk page in the default signiture X-Git-Tag: 1.6.0~1282 X-Git-Url: http://git.cyclocoop.org/%22.htmlspecialchars%28%24url_syndic%29.%22?a=commitdiff_plain;h=baf7fdc2d224cc4bca29cd1463bcabc681578333;p=lhc%2Fweb%2Fwiklou.git * (bug 3391) Display a link to the talk page in the default signiture --- 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 );