Index: trunk/extensions/AbuseFilter/AbuseFilter.class.php |
— | — | @@ -99,6 +99,7 @@ |
100 | 100 | 'old_text' => 'old-text-stripped', |
101 | 101 | 'old_html' => 'old-html', |
102 | 102 | 'old_links' => 'old-links', |
| 103 | + 'minor_edit' => 'minor-edit', |
103 | 104 | ), |
104 | 105 | ); |
105 | 106 | |
— | — | @@ -1108,6 +1109,7 @@ |
1109 | 1110 | $vars->addHolder( self::generateTitleVars( $title, 'ARTICLE' ) ); |
1110 | 1111 | $vars->setVar( 'ACTION', 'edit' ); |
1111 | 1112 | $vars->setVar( 'SUMMARY', $row->rc_comment ); |
| 1113 | + $vars->setVar( 'minor_edit', $row->rc_minor ); |
1112 | 1114 | |
1113 | 1115 | |
1114 | 1116 | $vars->setLazyLoadVar( 'new_wikitext', 'revision-text-by-id', |
Index: trunk/extensions/AbuseFilter/AbuseFilter.i18n.php |
— | — | @@ -276,6 +276,7 @@ |
277 | 277 | 'abusefilter-edit-builder-vars-old-text-stripped' => 'Old page text, stripped of any markup', |
278 | 278 | 'abusefilter-edit-builder-vars-old-links' => 'Links in the page, before the edit', |
279 | 279 | 'abusefilter-edit-builder-vars-old-html' => 'Old page wikitext, parsed into HTML', |
| 280 | + 'abusefilter-edit-builder-vars-minor-edit' => 'Whether or not the edit is marked as minor', |
280 | 281 | |
281 | 282 | // Filter history |
282 | 283 | 'abusefilter-filter-log' => 'Recent filter changes', |
Index: trunk/extensions/AbuseFilter/AbuseFilter.hooks.php |
— | — | @@ -21,6 +21,7 @@ |
22 | 22 | $vars->addHolder( AbuseFilter::generateTitleVars( $editor->mTitle , 'ARTICLE' ) ); |
23 | 23 | $vars->setVar( 'ACTION', 'edit' ); |
24 | 24 | $vars->setVar( 'SUMMARY', $summary ); |
| 25 | + $vars->setVar( 'minor_edit', $editor->minoredit ); |
25 | 26 | |
26 | 27 | $vars->setLazyLoadVar( 'old_wikitext', 'revision-text-by-timestamp', |
27 | 28 | array( |