From: Alexandre Emsenhuber Date: Sun, 11 Apr 2010 07:57:12 +0000 (+0000) Subject: Fixes for r64903: X-Git-Tag: 1.31.0-rc.0~37149 X-Git-Url: https://git.cyclocoop.org/?a=commitdiff_plain;h=056ac200b790df7d4736912ef38606ad805c35fb;p=lhc%2Fweb%2Fwiklou.git Fixes for r64903: * changed execute() signature to be compatible with SpecialPage::execute() * changed $to to $target since the former is not defined at this point, and corrected message name * removed trailing spaces --- diff --git a/includes/specials/SpecialEmailuser.php b/includes/specials/SpecialEmailuser.php index 6bd92a2810..83df8b2467 100644 --- a/includes/specials/SpecialEmailuser.php +++ b/includes/specials/SpecialEmailuser.php @@ -61,7 +61,7 @@ class SpecialEmailUser extends UnlistedSpecialPage { ); } - public function execute( $par=null ) { + public function execute( $par ) { global $wgRequest, $wgOut, $wgUser; $this->mTarget = is_null( $par ) ? $wgRequest->getVal( 'wpTarget', '' ) @@ -192,7 +192,7 @@ class SpecialEmailUser extends UnlistedSpecialPage { if ( $hookErr ) { return $hookErr; } - + return null; } @@ -208,7 +208,7 @@ class SpecialEmailUser extends UnlistedSpecialPage { $target = self::getTarget( $data['Target'] ); if( !$target instanceof User ){ - return wfMsgExt( $to, 'parse' ); + return wfMsgExt( $target . 'text', 'parse' ); } $to = new MailAddress( $target ); $from = new MailAddress( $wgUser );