Index: trunk/phase3/includes/specials/SpecialEmailuser.php |
— | — | @@ -61,7 +61,7 @@ |
62 | 62 | ); |
63 | 63 | } |
64 | 64 | |
65 | | - public function execute( $par=null ) { |
| 65 | + public function execute( $par ) { |
66 | 66 | global $wgRequest, $wgOut, $wgUser; |
67 | 67 | $this->mTarget = is_null( $par ) |
68 | 68 | ? $wgRequest->getVal( 'wpTarget', '' ) |
— | — | @@ -192,7 +192,7 @@ |
193 | 193 | if ( $hookErr ) { |
194 | 194 | return $hookErr; |
195 | 195 | } |
196 | | - |
| 196 | + |
197 | 197 | return null; |
198 | 198 | } |
199 | 199 | |
— | — | @@ -208,7 +208,7 @@ |
209 | 209 | |
210 | 210 | $target = self::getTarget( $data['Target'] ); |
211 | 211 | if( !$target instanceof User ){ |
212 | | - return wfMsgExt( $to, 'parse' ); |
| 212 | + return wfMsgExt( $target . 'text', 'parse' ); |
213 | 213 | } |
214 | 214 | $to = new MailAddress( $target ); |
215 | 215 | $from = new MailAddress( $wgUser ); |