From 2da3e35b513a57135d0bcf883a6cad1f53084e55 Mon Sep 17 00:00:00 2001 From: Happy-melon Date: Sun, 20 Sep 2009 21:24:48 +0000 Subject: [PATCH] Follow-ups to r56684: add a member function for extensions to add header text cleanly, and tweak variable names in api/ApiLogin.php. --- ConfirmEdit_body.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ConfirmEdit_body.php b/ConfirmEdit_body.php index 4ec7ff511..5bb6e7e8d 100644 --- a/ConfirmEdit_body.php +++ b/ConfirmEdit_body.php @@ -151,11 +151,12 @@ class SimpleCaptcha { wfDebug( "ConfirmEdit: user group allows skipping captcha on account creation\n" ); return true; } - $sp->mFormHeader .= + $sp->addFormHeader( "
" . $wgOut->parse( $this->getMessage( 'createaccount' ) ) . $this->getForm() . - "
\n"; + "\n" + ); } return true; } @@ -169,11 +170,12 @@ class SimpleCaptcha { function injectUserLogin( &$sp ) { if ( $this->isBadLoginTriggered() ) { global $wgOut; - $sp->mFormHeader .= + $sp->addFormHeader( "
" . $wgOut->parse( $this->getMessage( 'badlogin' ) ) . $this->getForm() . - "
\n"; + "\n" + ); } return true; }