From: Sam Reed Date: Tue, 27 Jul 2010 10:30:07 +0000 (+0000) Subject: Make EditPage::spamPage() static X-Git-Tag: 1.31.0-rc.0~35897 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=2eb44c206a4180b5cbbc73497e35a60ed519f4e5;p=lhc%2Fweb%2Fwiklou.git Make EditPage::spamPage() static Add braces --- diff --git a/includes/EditPage.php b/includes/EditPage.php index ab60acb8e2..24b0ed702e 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -2022,7 +2022,7 @@ INPUTS * * @param $match Text which triggered one or more filters */ - function spamPage( $match = false ) { + static function spamPage( $match = false ) { global $wgOut, $wgTitle; $wgOut->setPageTitle( wfMsg( 'spamprotectiontitle' ) ); @@ -2031,8 +2031,9 @@ INPUTS $wgOut->addHTML( '
' ); $wgOut->addWikiMsg( 'spamprotectiontext' ); - if ( $match ) + if ( $match ) { $wgOut->addWikiMsg( 'spamprotectionmatch', wfEscapeWikiText( $match ) ); + } $wgOut->addHTML( '
' ); $wgOut->returnToMain( false, $wgTitle ); @@ -2603,7 +2604,7 @@ INPUTS return false; case self::AS_SPAM_ERROR: - $this->spamPage( $resultDetails['spam'] ); + self::spamPage( $resultDetails['spam'] ); return false; case self::AS_BLOCKED_PAGE_FOR_USER: