r98708 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98707‎ | r98708 | r98709 >
Date:20:07, 2 October 2011
Author:catrope
Status:ok
Tags:
Comment:
1.17wmf1: MFT r98707
Modified paths:
  • /branches/wmf/1.17wmf1/includes/specials/SpecialUserlogin.php (modified) (history)
  • /branches/wmf/1.17wmf1/includes/templates/Userlogin.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/includes/specials/SpecialUserlogin.php
@@ -1072,6 +1072,14 @@
10731073 if( $this->mLanguage )
10741074 $template->set( 'uselang', $this->mLanguage );
10751075 }
 1076+
 1077+ // Use loginend-https for HTTPS requests if it exists, loginend otherwise
 1078+ $httpsMsg = wfMessage( 'loginend-https' );
 1079+ if ( WebRequest::detectProtocol() == 'https' && $httpsMsg->exists() ) {
 1080+ $template->set( 'loginend', $httpsMsg->parse() );
 1081+ } else {
 1082+ $template->set( 'loginend', wfMessage( 'loginend' )->parse() );
 1083+ }
10761084
10771085 // Give authentication and captcha plugins a chance to modify the form
10781086 $wgAuth->modifyUITemplate( $template, $this->mType );
Index: branches/wmf/1.17wmf1/includes/templates/Userlogin.php
@@ -144,7 +144,7 @@
145145 <?php if( @$this->haveData( 'token' ) ) { ?><input type="hidden" name="wpLoginToken" value="<?php $this->text( 'token' ); ?>" /><?php } ?>
146146 </form>
147147 </div>
148 -<div id="loginend"><?php $this->msgWiki( 'loginend' ); ?></div>
 148+<div id="loginend"><?php $this->html( 'loginend' ); ?></div>
149149 <?php
150150
151151 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r98707(bug 31293) If Special:Userlogin is loaded over HTTPS, display MediaWiki:logi...catrope20:02, 2 October 2011

Status & tagging log