Index: trunk/phase3/includes/SpecialBlockme.php |
— | — | @@ -11,8 +11,9 @@ |
12 | 12 | $blockerName = wfMsg( "proxyblocker" ); |
13 | 13 | $reason = wfMsg( "proxyblockreason" ); |
14 | 14 | $success = wfMsg( "proxyblocksuccess" ); |
15 | | - |
16 | | - $id = User::idForName( $blockerName ); |
| 15 | + |
| 16 | + $u = User::newFromName( $blockerName ); |
| 17 | + $id = $u->idForName(); |
17 | 18 | if ( !$id ) { |
18 | 19 | $u = User::newFromName( $blockerName ); |
19 | 20 | $u->addToDatabase(); |