From: Platonides Date: Thu, 10 Jun 2010 11:53:59 +0000 (+0000) Subject: Follow up r67798. Use wfMsgExt() with 'parseinline' and 'replaceafter' as pointed... X-Git-Tag: 1.31.0-rc.0~36552 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=729d1ef08a50752f3ab79d4eba83760ba0c37dd1;p=lhc%2Fweb%2Fwiklou.git Follow up r67798. Use wfMsgExt() with 'parseinline' and 'replaceafter' as pointed by Liangent. --- diff --git a/includes/specials/SpecialUserlogin.php b/includes/specials/SpecialUserlogin.php index 84f8fdded7..ed1bbc015a 100644 --- a/includes/specials/SpecialUserlogin.php +++ b/includes/specials/SpecialUserlogin.php @@ -982,7 +982,7 @@ class LoginForm { # Don't show a "create account" link if the user can't if( $this->showCreateOrLoginLink( $wgUser ) ) - $template->set( 'link', preg_replace('/(^

|<\/p>$)/', '', wfMsgWikiHtml( $linkmsg, $link ) ) ); + $template->set( 'link', wfMsgExt( $linkmsg, array( 'parseinline', 'replaceafter' ), $link ) ); else $template->set( 'link', '' );