* 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
- public function execute( $par=null ) {
+ public function execute( $par ) {
global $wgRequest, $wgOut, $wgUser;
$this->mTarget = is_null( $par )
? $wgRequest->getVal( 'wpTarget', '' )
global $wgRequest, $wgOut, $wgUser;
$this->mTarget = is_null( $par )
? $wgRequest->getVal( 'wpTarget', '' )
if ( $hookErr ) {
return $hookErr;
}
if ( $hookErr ) {
return $hookErr;
}
$target = self::getTarget( $data['Target'] );
if( !$target instanceof User ){
$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 );
}
$to = new MailAddress( $target );
$from = new MailAddress( $wgUser );