Index: trunk/phase3/includes/User.php |
— | — | @@ -2445,29 +2445,6 @@ |
2446 | 2446 | function isNewbie() { |
2447 | 2447 | return !$this->isAllowed( 'autoconfirmed' ); |
2448 | 2448 | } |
2449 | | - |
2450 | | - /** |
2451 | | - * Is the user active? We check to see if they've made at least |
2452 | | - * X number of edits in the last Y days. |
2453 | | - * |
2454 | | - * @return bool true if the user is active, false if not |
2455 | | - */ |
2456 | | - public function isActiveUser() { |
2457 | | - global $wgActiveUserEditcount, $wgActiveUserDays; |
2458 | | - $dbr = wfGetDB( DB_SLAVE ); |
2459 | | - |
2460 | | - // Stolen without shame from RC |
2461 | | - $cutoff_unixtime = time() - ( $wgActiveUserDays * 86400 ); |
2462 | | - $cutoff_unixtime = $cutoff_unixtime - ( $cutoff_unixtime % 86400 ); |
2463 | | - $oldTime = $dbr->timestamp( $cutoff_unixtime ); |
2464 | | - |
2465 | | - $res = $dbr->select( 'revision', '1', |
2466 | | - array( 'rev_user_text' => $this->getName(), "rev_timestamp > $oldTime"), |
2467 | | - __METHOD__, |
2468 | | - array('LIMIT' => $wgActiveUserEditcount ) ); |
2469 | | - |
2470 | | - return $dbr->numRows($res) == $wgActiveUserEditcount ? true : false; |
2471 | | - } |
2472 | 2449 | |
2473 | 2450 | /** |
2474 | 2451 | * Check to see if the given clear-text password is one of the accepted passwords |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -1280,14 +1280,6 @@ |
1281 | 1281 | */ |
1282 | 1282 | $wgDeleteRevisionsLimit = 0; |
1283 | 1283 | |
1284 | | -/** |
1285 | | - * Used to figure out if a user is "active" or not. User::isActiveUser() |
1286 | | - * sees if a user has made at least $wgActiveUserEditcount number of edits |
1287 | | - * within the last $wgActiveUserDays days. |
1288 | | - */ |
1289 | | -$wgActiveUserEditcount = 30; |
1290 | | -$wgActiveUserDays = 30; |
1291 | | - |
1292 | 1284 | # Proxy scanner settings |
1293 | 1285 | # |
1294 | 1286 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -49,9 +49,6 @@ |
50 | 50 | (default 100) with the new subpage-move functionality of Special:Movepage |
51 | 51 | * Hooks display in Special:Version is now disabled by default, use |
52 | 52 | $wgSpecialVersionShowHooks = true; to enable it. |
53 | | -* $wgActiveUserEditcount sets the number of edits that must be performed over |
54 | | - a certain number of days to be considered active |
55 | | -* $wgActiveUserDays is that number of days |
56 | 53 | |
57 | 54 | === New features in 1.13 === |
58 | 55 | |
— | — | @@ -138,9 +135,6 @@ |
139 | 136 | * (bug 14263) Show a diff of the revert on rollback notification page. |
140 | 137 | * (bug 13434) Show a warning when hash identical files exist |
141 | 138 | * Sidebar is now cached for all languages |
142 | | -* The User class now contains a public function called isActiveUser. Figures |
143 | | - out if a user is active based on at least $wgActiveUserEditcount number of |
144 | | - edits in the last $wgActiveUserDays days. |
145 | 139 | |
146 | 140 | === Bug fixes in 1.13 === |
147 | 141 | |