From: Brion Vibber Date: Tue, 4 Dec 2007 21:18:15 +0000 (+0000) Subject: Parser_OldPP class had older signature function. Updating to the current one, using... X-Git-Tag: 1.31.0-rc.0~50547 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=aaa5690031bea171b3fadf9ee7626761d9505b48;p=lhc%2Fweb%2Fwiklou.git Parser_OldPP class had older signature function. Updating to the current one, using site-customizable formatting. --- diff --git a/includes/Parser_OldPP.php b/includes/Parser_OldPP.php index 38e426e6dd..d8c662703d 100644 --- a/includes/Parser_OldPP.php +++ b/includes/Parser_OldPP.php @@ -3848,8 +3848,13 @@ class Parser_OldPP $nickname = $this->cleanSigInSig( $nickname ); # If we're still here, make it a link to the user page - $userpage = $user->getUserPage(); - return( '[[' . $userpage->getPrefixedText() . '|' . wfEscapeWikiText( $nickname ) . ']]' ); + $userText = wfEscapeWikiText( $username ); + $nickText = wfEscapeWikiText( $nickname ); + if ( $user->isAnon() ) { + return wfMsgExt( 'signature-anon', array( 'content', 'parsemag' ), $userText, $nickText ); + } else { + return wfMsgExt( 'signature', array( 'content', 'parsemag' ), $userText, $nickText ); + } } /**