Index: trunk/extensions/AbuseFilter/AbuseFilter.php |
— | — | @@ -53,7 +53,7 @@ |
54 | 54 | $wgSpecialPageGroups['AbuseLog'] = 'changes'; |
55 | 55 | $wgSpecialPageGroups['AbuseFilter'] = 'wiki'; |
56 | 56 | |
57 | | -$wgHooks['EditFilter'][] = 'AbuseFilterHooks::onEditFilter'; |
| 57 | +$wgHooks['EditFilterMerged'][] = 'AbuseFilterHooks::onEditFilterMerged'; |
58 | 58 | $wgHooks['GetAutoPromoteGroups'][] = 'AbuseFilterHooks::onGetAutoPromoteGroups'; |
59 | 59 | $wgHooks['AbortMove'][] = 'AbuseFilterHooks::onAbortMove'; |
60 | 60 | $wgHooks['AbortNewAccount'][] = 'AbuseFilterHooks::onAbortNewAccount'; |
Index: trunk/extensions/AbuseFilter/AbuseFilter.class.php |
— | — | @@ -1158,7 +1158,7 @@ |
1159 | 1159 | $article = new Article( $title ); |
1160 | 1160 | |
1161 | 1161 | $vars->setLazyLoadVar( 'edit_diff', 'diff', |
1162 | | - array( 'oldtext-var' => 'old_text', 'newtext-var' => 'new_text' ) ); |
| 1162 | + array( 'oldtext-var' => 'old_wikitext', 'newtext-var' => 'new_wikitext' ) ); |
1163 | 1163 | $vars->setLazyLoadVar( 'new_size', 'length', array( 'length-var' => 'new_wikitext' ) ); |
1164 | 1164 | $vars->setLazyLoadVar( 'old_size', 'length', array( 'length-var' => 'old_wikitext' ) ); |
1165 | 1165 | $vars->setLazyLoadVar( 'edit_delta', 'subtract', |
Index: trunk/extensions/AbuseFilter/AbuseFilter.hooks.php |
— | — | @@ -7,7 +7,7 @@ |
8 | 8 | // So far, all of the error message out-params for these hooks accept HTML. |
9 | 9 | // Hooray! |
10 | 10 | |
11 | | - public static function onEditFilter($editor, $text, $section, &$error, $summary) { |
| 11 | + public static function onEditFilterMerged($editor, $text, &$error, $summary) { |
12 | 12 | // Load vars |
13 | 13 | $vars = new AbuseFilterVariableHolder; |
14 | 14 | |