Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -2022,7 +2022,7 @@ |
2023 | 2023 | * |
2024 | 2024 | * @param $match Text which triggered one or more filters |
2025 | 2025 | */ |
2026 | | - function spamPage( $match = false ) { |
| 2026 | + static function spamPage( $match = false ) { |
2027 | 2027 | global $wgOut, $wgTitle; |
2028 | 2028 | |
2029 | 2029 | $wgOut->setPageTitle( wfMsg( 'spamprotectiontitle' ) ); |
— | — | @@ -2031,8 +2031,9 @@ |
2032 | 2032 | |
2033 | 2033 | $wgOut->addHTML( '<div id="spamprotected">' ); |
2034 | 2034 | $wgOut->addWikiMsg( 'spamprotectiontext' ); |
2035 | | - if ( $match ) |
| 2035 | + if ( $match ) { |
2036 | 2036 | $wgOut->addWikiMsg( 'spamprotectionmatch', wfEscapeWikiText( $match ) ); |
| 2037 | + } |
2037 | 2038 | $wgOut->addHTML( '</div>' ); |
2038 | 2039 | |
2039 | 2040 | $wgOut->returnToMain( false, $wgTitle ); |
— | — | @@ -2603,7 +2604,7 @@ |
2604 | 2605 | return false; |
2605 | 2606 | |
2606 | 2607 | case self::AS_SPAM_ERROR: |
2607 | | - $this->spamPage( $resultDetails['spam'] ); |
| 2608 | + self::spamPage( $resultDetails['spam'] ); |
2608 | 2609 | return false; |
2609 | 2610 | |
2610 | 2611 | case self::AS_BLOCKED_PAGE_FOR_USER: |