Index: trunk/extensions/SignupAPI/includes/SpecialUserSignup.php |
— | — | @@ -732,6 +732,15 @@ |
733 | 733 | if( $this->mLanguage ) |
734 | 734 | $template->set( 'uselang', $this->mLanguage ); |
735 | 735 | } |
| 736 | + |
| 737 | + // Use signupend-https for HTTPS requests if it's not blank, signupend otherwise |
| 738 | + $usingHTTPS = WebRequest::detectProtocol() == 'https'; |
| 739 | + $signupendHTTPS = $this->msg( 'signupend-https' ); |
| 740 | + if ( $usingHTTPS && !$signupendHTTPS->isBlank() ) { |
| 741 | + $template->set( 'signupend', $signupendHTTPS->parse() ); |
| 742 | + } else { |
| 743 | + $template->set( 'signupend', $this->msg( 'signupend' )->parse() ); |
| 744 | + } |
736 | 745 | |
737 | 746 | // Give authentication and captcha plugins a chance to modify the form |
738 | 747 | $wgAuth->modifyUITemplate( $template, $this->mType ); |