r2977 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r2976‎ | r2977 | r2978 >
Date:10:42, 5 April 2004
Author:timstarling
Status:old
Tags:
Comment:
bug fix -- multiple user IDs for Proxy blocker
Modified paths:
  • /trunk/phase3/includes/SpecialBlockme.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialBlockme.php
@@ -11,8 +11,9 @@
1212 $blockerName = wfMsg( "proxyblocker" );
1313 $reason = wfMsg( "proxyblockreason" );
1414 $success = wfMsg( "proxyblocksuccess" );
15 -
16 - $id = User::idForName( $blockerName );
 15+
 16+ $u = User::newFromName( $blockerName );
 17+ $id = $u->idForName();
1718 if ( !$id ) {
1819 $u = User::newFromName( $blockerName );
1920 $u->addToDatabase();

Status & tagging log