From: Brion Vibber Date: Sat, 3 Apr 2004 10:59:26 +0000 (+0000) Subject: Fix login/logout under XHTML X-Git-Tag: 1.3.0beta1~617 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=465f9ba5c225790bbd249d289a3f57c1f3f7189b;p=lhc%2Fweb%2Fwiklou.git Fix login/logout under XHTML --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 6ad71b33e3..e4f79a1703 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -554,7 +554,7 @@ class OutputPage { $titleObj = Title::newFromText( $returnto ); $wgOut->addMeta( "http:Refresh", "10;url=" . $titleObj->escapeFullURL() ); } - $wgOut->addHTML( "\n

$r\n" ); + $wgOut->addHTML( "\n

$r

\n" ); } # This function takes the existing and broken links for the page diff --git a/includes/SpecialUserlogin.php b/includes/SpecialUserlogin.php index 75f2db22ed..1d72bea053 100644 --- a/includes/SpecialUserlogin.php +++ b/includes/SpecialUserlogin.php @@ -278,7 +278,7 @@ class LoginForm { $wgOut->setPageTitle( wfMsg( "loginsuccesstitle" ) ); $wgOut->setRobotpolicy( "noindex,nofollow" ); $wgOut->setArticleRelated( false ); - $wgOut->addHTML( $msg . "\n

" ); + $wgOut->addHTML( $msg ); $wgOut->returnToMain(); } @@ -357,56 +357,56 @@ class LoginForm { $encEmail = wfEscapeHTML( $this->mEmail ); if ($wgUser->getID() != 0) { - $cambutton = ""; + $cambutton = ""; } else { $cambutton = ""; } $wgOut->addHTML( "

- - -
$yn: - + + + - - - + + - "); if ($wgUser->isAllowedToCreateAccount()) { $encRetype = htmlspecialchars( $this->mRetype ); $encEmail = htmlspecialchars( $this->mEmail ); - $wgOut->addHTML(" - - + + - - + "); } $wgOut->addHTML(" - - +
$yn: + - + +
$yp: - + $yp: + + + - -
 
$ypa: - + $wgOut->addHTML("
 
$ypa: + $nuo
$ye: - - - + $ye: + + + $cambutton
 
-

$efl
- +

 
+

$efl
+

\n" ); $wgOut->addHTML( $endText ); diff --git a/includes/SpecialUserlogout.php b/includes/SpecialUserlogout.php index c86f55a7f1..182c9bf254 100644 --- a/includes/SpecialUserlogout.php +++ b/includes/SpecialUserlogout.php @@ -7,7 +7,7 @@ function wfSpecialUserlogout() $wgUser->logout(); $wgOut->mCookies = array(); $wgOut->setRobotpolicy( "noindex,nofollow" ); - $wgOut->addHTML( wfMsg( "logouttext" ) . "\n

" ); + $wgOut->addHTML( wfMsg( "logouttext" ) ); $wgOut->returnToMain(); }