switch( $cond[0] ) {
case APCOND_EMAILCONFIRMED:
if( User::isValidEmailAddr( $user->getEmail() ) ) {
- # FIXME: EMAILCONFIRMED is always true if
- # wgEmailAuthentication if false, this is confusing.
global $wgEmailAuthentication;
if( $wgEmailAuthentication ) {
return $user->getEmailAuthenticationTimestamp() ? true : false;
* array( APCOND_AGE, seconds since registration ), *OR*
* similar constructs defined by extensions.
*
- * Note that EMAILCONFIRMED will always be true if $wgEmailAuthentication is
- * off!
+ * If $wgEmailAuthentication is off, APCOND_EMAILCONFIRMED will be true for any
+ * user who has provided an e-mail address.
*/
$wgAutopromote = array(
'autoconfirmed' => array( '&',