Make EditPage::spamPage() static
Add braces
This commit is contained in:
parent
f21fdea9e5
commit
2eb44c206a
1 changed files with 4 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue