r43000 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r42999‎ | r43000 | r43001 >
Date:16:44, 1 November 2008
Author:aaron
Status:old
Tags:
Comment:
Pass user id to newFromDB() as well
Modified paths:
  • /trunk/phase3/includes/specials/SpecialBlockip.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialBlockip.php
@@ -611,7 +611,7 @@
612612 0, // suppress name?
613613 0 // block from sending email?
614614 );
615 - $oldblock = Block::newFromDB( $u->getName() );
 615+ $oldblock = Block::newFromDB( $u->getName(), $u->getId() );
616616 if( !$oldblock ) {
617617 $block->insert();
618618 # Prepare log parameters

Status & tagging log