Index: trunk/extensions/CentralAuth/AntiSpoof/batchCAAntiSpoof.php |
— | — | @@ -0,0 +1,28 @@ |
| 2 | +<?php |
| 3 | +// Go through all usernames and calculate and record spoof thingies |
| 4 | + |
| 5 | +$IP = getenv( 'MW_INSTALL_PATH' ); |
| 6 | +if ( $IP === false ) { |
| 7 | + $IP = dirname( __FILE__ ) . '/../../..'; |
| 8 | +} |
| 9 | +require( "$IP/maintenance/Maintenance.php" ); |
| 10 | + |
| 11 | +class BatchCAAntiSpoof extends BatchAntiSpoof { |
| 12 | + |
| 13 | + /** |
| 14 | + * @param $items array |
| 15 | + */ |
| 16 | + protected function batchRecord( $items ) { |
| 17 | + CentralAuthSpoofUser::batchRecord( $items ); |
| 18 | + } |
| 19 | + |
| 20 | + /** |
| 21 | + * @return DatabaseBase |
| 22 | + */ |
| 23 | + protected function getDB() { |
| 24 | + CentralAuthUser::getCentralDB(); |
| 25 | + } |
| 26 | +} |
| 27 | + |
| 28 | +$maintClass = "BatchCAAntiSpoof"; |
| 29 | +require_once( DO_MAINTENANCE ); |
Property changes on: trunk/extensions/CentralAuth/AntiSpoof/batchCAAntiSpoof.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 30 | + native |
Index: trunk/extensions/AntiSpoof/batchAntiSpoof.php |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | /** |
14 | 14 | * @param $items array |
15 | 15 | */ |
16 | | - private function batchRecord( $items ) { |
| 16 | + protected function batchRecord( $items ) { |
17 | 17 | SpoofUser::batchRecord( $items ); |
18 | 18 | } |
19 | 19 | |