diff options
author | Aaron Schulz <aaron@users.mediawiki.org> | 2009-01-03 12:53:08 +0000 |
---|---|---|
committer | Aaron Schulz <aaron@users.mediawiki.org> | 2009-01-03 12:53:08 +0000 |
commit | 1f3f3146091d06fd7e20854c97df87b3d96f7db4 (patch) | |
tree | 22b3933c0fb3bccab4f88ea3c907b50b23c763ba /includes/Autopromote.php | |
parent | b6fe54aefd24f3f11ec454eae7ea26576c47078e (diff) | |
download | mediawikicore-1f3f3146091d06fd7e20854c97df87b3d96f7db4.tar.gz mediawikicore-1f3f3146091d06fd7e20854c97df87b3d96f7db4.zip |
(bug 14737) Allow the autoconfirmed timer to run from the first edit
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/45365
Diffstat (limited to 'includes/Autopromote.php')
-rw-r--r-- | includes/Autopromote.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/Autopromote.php b/includes/Autopromote.php index e4df13316c0c..c8a4c03b278d 100644 --- a/includes/Autopromote.php +++ b/includes/Autopromote.php @@ -106,6 +106,9 @@ class Autopromote { case APCOND_AGE: $age = time() - wfTimestampOrNull( TS_UNIX, $user->getRegistration() ); return $age >= $cond[1]; + case APCOND_AGE_FROM_EDIT: + $age = time() - wfTimestampOrNull( TS_UNIX, $user->getFirstEditTimestamp() ); + return $age >= $cond[1]; case APCOND_INGROUPS: $groups = array_slice( $cond, 1 ); return count( array_intersect( $groups, $user->getGroups() ) ) == count( $groups ); |