- if ($wgEmailAuthentication && ($this->mUserEmail != '') ) {
- if ($wgUser->getEmailAuthenticationtimestamp() != 0) {
- $emailauthenticated = wfMsg('emailauthenticated',
- $wgLang->timeanddate($wgUser->getEmailAuthenticationtimestamp(), true ) ).'<br />';
- $disabled = '';
- } else {
- $emailauthenticated = wfMsg('emailnotauthenticated').'<br />';
- $disabled = ' '.wfMsg('disableduntilauthent');
- }
- } else {
- $emailauthenticated = '';
- }
-
- if ($this->mUserEmail == '') {
- $disabled = ' '.wfMsg('disablednoemail');
- }
-
- $ps = $this->namespacesCheckboxes();
-
- $enotifwatchlistpages = $wgEmailNotificationForWatchlistPages ? $this->getToggle( 'enotifwatchlistpages', $disabled) : '';
- $enotifusertalkpages = $wgEmailNotificationForUserTalkPages ? $this->getToggle( 'enotifusertalkpages', $disabled) : '';
- $enotifminoredits = $wgEmailNotificationForMinorEdits ? $this->getToggle( 'enotifminoredits', $disabled) : '';
- $enotifrevealaddr = $wgEmailNotificationRevealPageEditorAddress ? $this->getToggle( 'enotifrevealaddr', $disabled) : '';
- $prefs_help_email_enotif = ( $wgEmailNotificationForWatchlistPages || $wgEmailNotificationForUserTalkPages) ? ' ' . wfMsg('prefs-help-email-enotif') : '';
- if( $wgEnableEmail ) {
- $wgOut->addHTML( "<fieldset><legend>" . wfMsg('email') . "</legend>");
- $wgOut->addHTML(
- $emailauthenticated.
- $enotifrevealaddr.
- $enotifwatchlistpages.
- $enotifusertalkpages.
- $enotifminoredits );
- if( $wgEnableUserEmail ) {
- $emfc = $this->mEmailFlag ? 'checked="checked"' : '';
- $wgOut->addHTML(
- "<div class='toggle'><input type='checkbox' $emfc value='1' name='wpEmailFlag' id='wpEmailFlag' />".
- " <span class='toggletext'><label for='wpEmailFlag'>" .
- htmlspecialchars( wfMsg( 'emailflag' ) ) . $disabled .
- "</label></span></div>\n" );
- $prefs_help_realname = $wgAllowRealName ? wfMsg('prefs-help-realname') : '';
- }
+ # <FIXME>
+ # Enotif
+ if ($wgEnableEmail) {
+ $wgOut->addHTML( '<fieldset><legend>' . wfMsg( 'email' ) . '</legend>' );
+ $wgOut->addHTML(
+ $emailauthenticated.
+ $enotifrevealaddr.
+ $enotifwatchlistpages.
+ $enotifusertalkpages.
+ $enotifminoredits );
+ if ($wgEnableUserEmail) {
+ $emf = wfMsg( 'emailflag' );
+ $wgOut->addHTML(
+ "<div><label><input type='checkbox' $emfc value=\"1\" name=\"wpEmailFlag\" />$emf.$disabled</label></div>" );
+ }
+