"<p id="userloginlink"><p>Don't have an account" is illegal xhtml
authorPlatonides <platonides@users.mediawiki.org>
Thu, 10 Jun 2010 11:16:41 +0000 (11:16 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Thu, 10 Jun 2010 11:16:41 +0000 (11:16 +0000)
includes/specials/SpecialUserlogin.php

index 0a41b1f..84f8fdd 100644 (file)
@@ -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', wfMsgWikiHtml( $linkmsg, $link ) );
+                       $template->set( 'link', preg_replace('/(^<p>|<\/p>$)/', '', wfMsgWikiHtml( $linkmsg, $link ) ) );
                else
                        $template->set( 'link', '' );