r76672 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76671‎ | r76672 | r76673 >
Date:20:12, 14 November 2010
Author:raymond
Status:ok
Tags:
Comment:
Follow-up r76671: revert remove of ! (not my day :-( )
whitesoace
Modified paths:
  • /trunk/extensions/ContactPage/SpecialContact.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ContactPage/SpecialContact.php
@@ -44,7 +44,7 @@
4545 $action = $wgRequest->getVal( 'action' );
4646
4747 $nu = User::newFromName( $wgContactUser );
48 - if( is_null( $nu ) || $nu->canReceiveEmail() ) {
 48+ if( is_null( $nu ) || !$nu->canReceiveEmail() ) {
4949 wfDebug( "Target is invalid user or can't receive.\n" );
5050 $wgOut->showErrorPage( 'noemailtitle', 'noemailtext' );
5151 return;
@@ -70,7 +70,7 @@
7171 return;
7272 }
7373
74 - $f = new EmailContactForm( $nu, $par);
 74+ $f = new EmailContactForm( $nu, $par );
7575
7676 if ( 'success' == $action ) {
7777 wfDebug( __METHOD__ . ": success.\n" );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r76671Follow-up r76660: typos per CRraymond20:09, 14 November 2010

Status & tagging log