From: Happy-melon Date: Thu, 3 Jun 2010 09:43:12 +0000 (+0000) Subject: Follow-up to r64903; fix field names broken by r65040. X-Git-Tag: 1.31.0-rc.0~36630 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=d04bf9ff3f4c40f56b6bc2d158a5159dd5bed824;p=lhc%2Fweb%2Fwiklou.git Follow-up to r64903; fix field names broken by r65040. --- diff --git a/includes/specials/SpecialEmailuser.php b/includes/specials/SpecialEmailuser.php index 83df8b2467..e6927ef490 100644 --- a/includes/specials/SpecialEmailuser.php +++ b/includes/specials/SpecialEmailuser.php @@ -35,6 +35,7 @@ class SpecialEmailUser extends UnlistedSpecialPage { 'id' => 'mw-emailuser-recipient', ), 'Target' => array( + 'name' => 'wpTarget', 'type' => 'hidden', 'default' => $this->mTargetObj->getName(), ), @@ -133,14 +134,8 @@ class SpecialEmailUser extends UnlistedSpecialPage { wfDebug( "Target is empty.\n" ); return 'notarget'; } - - $nt = Title::newFromURL( $target ); - if ( !$nt instanceof Title ) { - wfDebug( "Target is invalid title.\n" ); - return 'notarget'; - } - - $nu = User::newFromName( $nt->getText() ); + + $nu = User::newFromName( $target ); if( !$nu instanceof User || !$nu->getId() ) { wfDebug( "Target is invalid user.\n" ); return 'notarget';