From: Happy-melon Date: Sun, 20 Sep 2009 21:24:48 +0000 (+0000) Subject: Follow-ups to r56684: add a member function for extensions to add header text cleanly... X-Git-Url: https://git.toastfreeware.priv.at/toast/cookiecaptcha.git/commitdiff_plain/2da3e35b513a57135d0bcf883a6cad1f53084e55 Follow-ups to r56684: add a member function for extensions to add header text cleanly, and tweak variable names in api/ApiLogin.php. --- diff --git a/ConfirmEdit_body.php b/ConfirmEdit_body.php index 4ec7ff5..5bb6e7e 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; }