r67801 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67800‎ | r67801 | r67802 >
Date:11:53, 10 June 2010
Author:platonides
Status:ok
Tags:
Comment:
Follow up r67798. Use wfMsgExt() with 'parseinline' and 'replaceafter' as pointed by Liangent.
Modified paths:
  • /trunk/phase3/includes/specials/SpecialUserlogin.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialUserlogin.php
@@ -982,7 +982,7 @@
983983
984984 # Don't show a "create account" link if the user can't
985985 if( $this->showCreateOrLoginLink( $wgUser ) )
986 - $template->set( 'link', preg_replace('/(^<p>|<\/p>$)/', '', wfMsgWikiHtml( $linkmsg, $link ) ) );
 986+ $template->set( 'link', wfMsgExt( $linkmsg, array( 'parseinline', 'replaceafter' ), $link ) );
987987 else
988988 $template->set( 'link', '' );
989989

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r67798"<p id="userloginlink"><p>Don't have an account" is illegal xhtmlplatonides11:16, 10 June 2010

Status & tagging log