From 2eb44c206a4180b5cbbc73497e35a60ed519f4e5 Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Tue, 27 Jul 2010 10:30:07 +0000 Subject: [PATCH] Make EditPage::spamPage() static Add braces --- includes/EditPage.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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: -- 2.20.1