Fix autoblocks in r92480 r92482 -- modified the wrong half
authorAndrew Garrett <werdna@users.mediawiki.org>
Mon, 18 Jul 2011 22:02:11 +0000 (22:02 +0000)
committerAndrew Garrett <werdna@users.mediawiki.org>
Mon, 18 Jul 2011 22:02:11 +0000 (22:02 +0000)
includes/Block.php

index 1e535d8..a59d935 100644 (file)
@@ -644,7 +644,7 @@ class Block {
                $autoblock->prevents( 'editownusertalk', $this->prevents( 'editownusertalk' ) );
 
                 $dbr = wfGetDB( DB_SLAVE );
-               if ( $timestamp == 'infinity' ) {
+               if ( $this->mExpiry == 'infinity' ) {
                        # Original block was indefinite, start an autoblock now
                        $autoblock->mExpiry = Block::getAutoblockExpiry( $timestamp );
                } else {