Index: trunk/extensions/SpamBlacklist/SpamBlacklist_body.php |
— | — | @@ -11,6 +11,7 @@ |
12 | 12 | var $warningTime = 600; |
13 | 13 | var $expiryTime = 900; |
14 | 14 | var $warningChance = 100; |
| 15 | + var $ignoreEditSummary = false; |
15 | 16 | |
16 | 17 | function SpamBlacklist( $settings = array() ) { |
17 | 18 | foreach ( $settings as $name => $value ) { |
— | — | @@ -227,7 +228,7 @@ |
228 | 229 | $addedLinks = array_diff( $newLinks, $oldLinks ); |
229 | 230 | |
230 | 231 | // We add the edit summary if one exists |
231 | | - if ( !empty( $editsummary ) ) $addedLinks[] = $editsummary; |
| 232 | + if ( !$this->ignoreEditSummary && !empty( $editsummary ) ) $addedLinks[] = $editsummary; |
232 | 233 | |
233 | 234 | wfDebugLog( 'SpamBlacklist', "Old URLs: " . implode( ', ', $oldLinks ) ); |
234 | 235 | wfDebugLog( 'SpamBlacklist', "New URLs: " . implode( ', ', $newLinks ) ); |