r92485 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92484‎ | r92485 | r92486 >
Date:22:02, 18 July 2011
Author:werdna
Status:ok
Tags:
Comment:
Fix autoblocks in r92480 r92482 -- modified the wrong half
Modified paths:
  • /trunk/phase3/includes/Block.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Block.php
@@ -644,7 +644,7 @@
645645 $autoblock->prevents( 'editownusertalk', $this->prevents( 'editownusertalk' ) );
646646
647647 $dbr = wfGetDB( DB_SLAVE );
648 - if ( $timestamp == 'infinity' ) {
 648+ if ( $this->mExpiry == 'infinity' ) {
649649 # Original block was indefinite, start an autoblock now
650650 $autoblock->mExpiry = Block::getAutoblockExpiry( $timestamp );
651651 } else {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r92480Block.php fixes: Always store mExpiry as a TS_MW or "infinity". Convert as ap...werdna21:48, 18 July 2011
r92482Fix autoblocks in r92480werdna21:56, 18 July 2011

Status & tagging log