r92482 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92481‎ | r92482 | r92483 >
Date:21:56, 18 July 2011
Author:werdna
Status:resolved
Tags:
Comment:
Fix autoblocks in r92480
Modified paths:
  • /trunk/phase3/includes/Block.php (modified) (history)

Diff [purge]

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

Follow-up revisions

RevisionCommit summaryAuthorDate
r92485Fix autoblocks in r92480 r92482 -- modified the wrong halfwerdna22:02, 18 July 2011
r92505MFT r92477, r92480, r92481, r92482, r92484, r9485, r92486...reedy23:14, 18 July 2011

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

Status & tagging log