Index: trunk/extensions/AntiBot/available/GenericFormEncoding.php |
— | — | @@ -1,5 +1,4 @@ |
2 | 2 | <?php |
3 | | - |
4 | 3 | /** |
5 | 4 | * This is a sample filter plugin which will hit a lot of bots, good and bad. |
6 | 5 | * |
— | — | @@ -19,7 +18,7 @@ |
20 | 19 | if ( isset( $headers['Content-Type'] ) |
21 | 20 | && $headers['Content-Type'] == 'application/x-www-form-urlencoded' ) |
22 | 21 | { |
23 | | - if ( AntiBot::trigger(__CLASS__) == 'fail' ) { |
| 22 | + if ( AntiBot::trigger( __CLASS__ ) == 'fail' ) { |
24 | 23 | return false; |
25 | 24 | } |
26 | 25 | } |
Index: trunk/extensions/AntiBot/AntiBot.php |
— | — | @@ -38,7 +38,7 @@ |
39 | 39 | 'author' => 'Tim Starling', |
40 | 40 | 'descriptionmsg' => 'antibot-desc', |
41 | 41 | ); |
42 | | -$wgExtensionMessagesFiles['AntiBot'] = dirname(__FILE__) . '/AntiBot.i18n.php'; |
| 42 | +$wgExtensionMessagesFiles['AntiBot'] = dirname( __FILE__ ) . '/AntiBot.i18n.php'; |
43 | 43 | |
44 | 44 | /** |
45 | 45 | * A map of payload types to callbacks |