Make EditPage::spamPage() static

Add braces
This commit is contained in:
Sam Reed 2010-07-27 10:30:07 +00:00
parent f21fdea9e5
commit 2eb44c206a

View file

@ -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( '<div id="spamprotected">' );
$wgOut->addWikiMsg( 'spamprotectiontext' );
if ( $match )
if ( $match ) {
$wgOut->addWikiMsg( 'spamprotectionmatch', wfEscapeWikiText( $match ) );
}
$wgOut->addHTML( '</div>' );
$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: