Index: trunk/phase3/includes/Block.php |
— | — | @@ -275,7 +275,7 @@ |
276 | 276 | * @param $user Integer: if not 0, then sets ipb_anon_only |
277 | 277 | * @return Boolean |
278 | 278 | */ |
279 | | - public function loadRange( $address, $killExpired = true, $user = 0 ) { |
| 279 | + protected function loadRange( $address, $killExpired = true, $user = 0 ) { |
280 | 280 | $iaddr = IP::toHex( $address ); |
281 | 281 | |
282 | 282 | if ( $iaddr === false ) { |
— | — | @@ -310,7 +310,7 @@ |
311 | 311 | * |
312 | 312 | * @param $row ResultWrapper: a row from the ipblocks table |
313 | 313 | */ |
314 | | - public function initFromRow( $row ) { |
| 314 | + protected function initFromRow( $row ) { |
315 | 315 | $this->mAddress = $row->ipb_address; |
316 | 316 | $this->mReason = $row->ipb_reason; |
317 | 317 | $this->mTimestamp = wfTimestamp( TS_MW, $row->ipb_timestamp ); |
— | — | @@ -492,7 +492,7 @@ |
493 | 493 | * |
494 | 494 | * @return Boolean: whether or not a retroactive autoblock was made. |
495 | 495 | */ |
496 | | - public function doRetroactiveAutoblock() { |
| 496 | + protected function doRetroactiveAutoblock() { |
497 | 497 | $dbr = wfGetDB( DB_SLAVE ); |
498 | 498 | # If autoblock is enabled, autoblock the LAST IP used |
499 | 499 | # - stolen shamelessly from CheckUser_body.php |