r64580 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64579‎ | r64580 | r64581 >
Date:22:52, 3 April 2010
Author:siebrand
Status:deferred
Tags:
Comment:
stylize.php, trailing whitespace removed
Modified paths:
  • /trunk/extensions/AntiBot/AntiBot.php (modified) (history)
  • /trunk/extensions/AntiBot/available/GenericFormEncoding.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AntiBot/available/GenericFormEncoding.php
@@ -1,5 +1,4 @@
22 <?php
3 -
43 /**
54 * This is a sample filter plugin which will hit a lot of bots, good and bad.
65 *
@@ -19,7 +18,7 @@
2019 if ( isset( $headers['Content-Type'] )
2120 && $headers['Content-Type'] == 'application/x-www-form-urlencoded' )
2221 {
23 - if ( AntiBot::trigger(__CLASS__) == 'fail' ) {
 22+ if ( AntiBot::trigger( __CLASS__ ) == 'fail' ) {
2423 return false;
2524 }
2625 }
Index: trunk/extensions/AntiBot/AntiBot.php
@@ -38,7 +38,7 @@
3939 'author' => 'Tim Starling',
4040 'descriptionmsg' => 'antibot-desc',
4141 );
42 -$wgExtensionMessagesFiles['AntiBot'] = dirname(__FILE__) . '/AntiBot.i18n.php';
 42+$wgExtensionMessagesFiles['AntiBot'] = dirname( __FILE__ ) . '/AntiBot.i18n.php';
4343
4444 /**
4545 * A map of payload types to callbacks

Status & tagging log