diff --git a/README b/README index 475a97b..a219cae 100644 --- a/README +++ b/README @@ -51,7 +51,7 @@ a captcha test for sending contact messages by using the following: $wgCaptchaTriggers['contactpage'] = true; -== Costumization == +== Customization == [[Special:Contact]] calls the default formular. Pagetext: [[MediaWiki:contactpage-pagetext]] diff --git a/SpecialContact.php b/SpecialContact.php index 9e7200e..b531801 100644 --- a/SpecialContact.php +++ b/SpecialContact.php @@ -44,7 +44,7 @@ class SpecialContact extends SpecialPage { $action = $wgRequest->getVal( 'action' ); $nu = User::newFromName( $wgContactUser ); - if( is_null( $nu ) || !$nu->canReceiveEmail() ) { + if( is_null( $nu ) || $nu->canReceiveEmail() ) { wfDebug( "Target is invalid user or can't receive.\n" ); $wgOut->showErrorPage( 'noemailtitle', 'noemailtext' ); return;