r83829 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83828‎ | r83829 | r83830 >
Date:15:44, 13 March 2011
Author:happy-melon
Status:ok
Tags:
Comment:
Follow-up r83827: a Block object will never be internally of TYPE_ID.
Modified paths:
  • /trunk/phase3/includes/Block.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Block.php
@@ -1003,7 +1003,7 @@
10041004 list( $target, $type ) = self::parseTarget( $this->mAddress );
10051005
10061006 # Check whether it's an autoblock
1007 - if( $type == self::TYPE_ID && $this->mAuto ){
 1007+ if( $this->mAuto ){
10081008 $type = self::TYPE_AUTO;
10091009 }
10101010

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r83827Follow-up r83825: fix Block::parseTarget to recognise autoblocks separately, ...happy-melon15:14, 13 March 2011

Status & tagging log