* User::isNewbie now uses the registration date and $wgAutoconfirmAge
* Log views show message when no matches
* Fix raw sitenotice display on database error
+* Fix autoconfirm check for old accounts
=== Caveats ===
$this->decodeOptions( $s->user_options );
$this->mTouched = wfTimestamp(TS_MW,$s->user_touched);
$this->mToken = $s->user_token;
- $this->mRegistration = wfTimestamp( TS_MW, $s->user_registration );
+ $this->mRegistration = wfTimestampOrNull( TS_MW, $s->user_registration );
$res = $dbr->select( 'user_groups',
array( 'ug_group' ),
/**
* Determine whether the user is a newbie. Newbies are either
- * anonymous IPs, or the 1% most recently created accounts.
- * Bots and sysops are excluded.
+ * anonymous IPs, or the most recently created accounts.
* @return bool True if it is a newbie.
*/
function isNewbie() {
return !$this->isAllowed( 'autoconfirmed' );
- //return $this->isAnon() || $this->mId > User::getMaxID() * 0.99 && !$this->isAllowed( 'delete' ) && !$this->isBot();
}
/**