r28156 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r28155‎ | r28156 | r28157 >
Date:21:18, 4 December 2007
Author:brion
Status:old
Tags:
Comment:
Parser_OldPP class had older signature function. Updating to the current one, using site-customizable formatting.
Modified paths:
  • /trunk/phase3/includes/Parser_OldPP.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Parser_OldPP.php
@@ -3848,8 +3848,13 @@
38493849 $nickname = $this->cleanSigInSig( $nickname );
38503850
38513851 # If we're still here, make it a link to the user page
3852 - $userpage = $user->getUserPage();
3853 - return( '[[' . $userpage->getPrefixedText() . '|' . wfEscapeWikiText( $nickname ) . ']]' );
 3852+ $userText = wfEscapeWikiText( $username );
 3853+ $nickText = wfEscapeWikiText( $nickname );
 3854+ if ( $user->isAnon() ) {
 3855+ return wfMsgExt( 'signature-anon', array( 'content', 'parsemag' ), $userText, $nickText );
 3856+ } else {
 3857+ return wfMsgExt( 'signature', array( 'content', 'parsemag' ), $userText, $nickText );
 3858+ }
38543859 }
38553860
38563861 /**

Status & tagging log