From db9832ae98437dec5720ab0bedf93b512d569bcf Mon Sep 17 00:00:00 2001 From: Andrew Garrett Date: Mon, 18 Jul 2011 21:56:59 +0000 Subject: [PATCH] Fix autoblocks in r92480 --- includes/Block.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Block.php b/includes/Block.php index c88ece71db..1e535d8c94 100644 --- a/includes/Block.php +++ b/includes/Block.php @@ -643,8 +643,8 @@ class Block { $autoblock->mHideName = $this->mHideName; $autoblock->prevents( 'editownusertalk', $this->prevents( 'editownusertalk' ) ); - $dbr = wfGetDB( DB_SLAVE ); - if ( $this->mExpiry == $dbr->getInfinity() ) { + $dbr = wfGetDB( DB_SLAVE ); + if ( $timestamp == 'infinity' ) { # Original block was indefinite, start an autoblock now $autoblock->mExpiry = Block::getAutoblockExpiry( $timestamp ); } else { -- 2.20.1