From 5044768ebde181fee3ee02ac79c0c91e5f7bd582 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 5 Apr 2004 10:42:57 +0000 Subject: [PATCH] bug fix -- multiple user IDs for Proxy blocker --- includes/SpecialBlockme.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/SpecialBlockme.php b/includes/SpecialBlockme.php index 23ac2a5f57..1ea9f8b31f 100644 --- a/includes/SpecialBlockme.php +++ b/includes/SpecialBlockme.php @@ -11,8 +11,9 @@ function wfSpecialBlockme() $blockerName = wfMsg( "proxyblocker" ); $reason = wfMsg( "proxyblockreason" ); $success = wfMsg( "proxyblocksuccess" ); - - $id = User::idForName( $blockerName ); + + $u = User::newFromName( $blockerName ); + $id = $u->idForName(); if ( !$id ) { $u = User::newFromName( $blockerName ); $u->addToDatabase(); -- 2.20.1