User:getDefaultOptions().
* (bug 30497) Add client-nojs and client-js classes on document element
to let styles easily hide or show things based on general JS availability
+* (bug 31293) If Special:Userlogin is loaded over HTTPS, display
+ MediaWiki:loginend-https instead of MediaWiki:loginend, if it exists
=== Bug fixes in 1.18 ===
* mw.util.getScript has been implemented (like wfScript in GlobalFunctions.php)
if( $this->mLanguage )
$template->set( 'uselang', $this->mLanguage );
}
+
+ // Use loginend-https for HTTPS requests if it exists, loginend otherwise
+ $httpsMsg = wfMessage( 'loginend-https' );
+ if ( WebRequest::detectProtocol() == 'https' && $httpsMsg->exists() ) {
+ $template->set( 'loginend', $httpsMsg->parse() );
+ } else {
+ $template->set( 'loginend', wfMessage( 'loginend' )->parse() );
+ }
// Give authentication and captcha plugins a chance to modify the form
$wgAuth->modifyUITemplate( $template, $this->mType );
<?php if( $this->haveData( 'token' ) ) { ?><input type="hidden" name="wpLoginToken" value="<?php $this->text( 'token' ); ?>" /><?php } ?>
</form>
</div>
-<div id="loginend"><?php $this->msgWiki( 'loginend' ); ?></div>
+<div id="loginend"><?php $this->html( 'loginend' ); ?></div>
<?php
}