From: S Page Date: Fri, 19 Apr 2013 07:44:04 +0000 (-0700) Subject: Move template header inside form so CAPTCHA works X-Git-Tag: 1.31.0-rc.0~19908 X-Git-Url: http://git.cyclocoop.org/%22%20%20.%20generer_url_ecrire%28%22mots_tous%22%29%20.%20%22?a=commitdiff_plain;h=574820ed6c0ec147a9387576301301407cf72995;p=lhc%2Fweb%2Fwiklou.git Move template header inside form so CAPTCHA works Also wrap it inside a section tag so the form's styling of gray labels and full-width input fields doesn't apply to the CAPTCHA. The same fix is in the new Create account form (though that uses JavaScript to reposition the FancyCaptcha image). CSS gives the section a small bottom margin to space it from the form contents, small enough to not affect form layout if there is nothing in the template header. Bug: 47371 Change-Id: I1523fe6551585ba731b0ca4207e22d614d0a46d8 --- diff --git a/includes/templates/UserloginVForm.php b/includes/templates/UserloginVForm.php index a944c0a760..0948a2033b 100644 --- a/includes/templates/UserloginVForm.php +++ b/includes/templates/UserloginVForm.php @@ -31,8 +31,6 @@ class UserloginTemplateVForm extends BaseTemplate { ?>
html( 'header' ); if ( $this->haveData( 'languages' ) ) { ?>