http://www.mediawiki.org/wiki/Special:Code/MediaWiki/69996
Revision: 69996
Author: reedy
Date: 2010-07-27 10:30:07 +0000 (Tue, 27 Jul 2010)
Log Message:
-----------
Make EditPage::spamPage() static
Add braces
Modified Paths:
--------------
trunk/phase3/includes/EditPage.php
Modified: trunk/phase3/includes/EditPage.php
===================================================================
--- trunk/phase3/includes/EditPage.php 2010-07-27 10:18:04 UTC (rev 69995)
+++ trunk/phase3/includes/EditPage.php 2010-07-27 10:30:07 UTC (rev 69996)
@@ -2022,7 +2022,7 @@
*
* @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 @@
$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 @@
return false;
case self::AS_SPAM_ERROR:
- $this->spamPage( $resultDetails['spam'] );
+ self::spamPage( $resultDetails['spam'] );
return false;
case self::AS_BLOCKED_PAGE_FOR_USER:
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs