Index: trunk/extensions/AbuseFilter/AbuseFilter.hooks.php |
— | — | @@ -284,12 +284,14 @@ |
285 | 285 | */ |
286 | 286 | public static function onMakeGlobalVariablesScript( array &$vars ) { |
287 | 287 | if ( AbuseFilter::$editboxName !== null ) { |
288 | | - $vars['wgFilterBoxName'] = AbuseFilter::$editboxName; |
| 288 | + $vars['abuseFilterBoxName'] = AbuseFilter::$editboxName; |
289 | 289 | } |
290 | 290 | |
291 | 291 | if ( AbuseFilterViewExamine::$examineType !== null ) { |
292 | | - $vars['wgExamineType'] = AbuseFilterViewExamine::$examineType; |
293 | | - $vars['wgExamineId'] = AbuseFilterViewExamine::$examineId; |
| 292 | + $vars['abuseFilterExamine'] = array( |
| 293 | + 'type' => AbuseFilterViewExamine::$examineType, |
| 294 | + 'id' => AbuseFilterViewExamine::$examineId, |
| 295 | + ); |
294 | 296 | } |
295 | 297 | return true; |
296 | 298 | } |
Index: trunk/extensions/AbuseFilter/modules/ext.abuseFilter.edit.js |
— | — | @@ -7,7 +7,7 @@ |
8 | 8 | * |
9 | 9 | * @var {jQuery} |
10 | 10 | */ |
11 | | - var $filterBox = $( '#' + mw.config.get( 'wgFilterBoxName' ) ); |
| 11 | + var $filterBox = $( '#' + mw.config.get( 'abuseFilterBoxName' ) ); |
12 | 12 | |
13 | 13 | /** |
14 | 14 | * Reference to this |
Index: trunk/extensions/AbuseFilter/modules/ext.abuseFilter.examine.js |
— | — | @@ -19,16 +19,17 @@ |
20 | 20 | */ |
21 | 21 | this.examinerTestFilter = function() { |
22 | 22 | var filter = $( '#wpTestFilter' ).val(), |
| 23 | + examine = mw.config.get( 'abuseFilterExamine' ), |
23 | 24 | params = {}; |
24 | 25 | $( this ).injectSpinner( 'filter-check' ); |
25 | 26 | |
26 | | - if ( mw.config.get( 'wgExamineType' ) == 'rc' ) { |
| 27 | + if ( examine.type == 'rc' ) { |
27 | 28 | params = { |
28 | | - rcid: mw.config.get( 'wgExamineId' ) |
| 29 | + rcid: examine.id |
29 | 30 | } |
30 | 31 | } else { |
31 | 32 | params = { |
32 | | - logid: mw.config.get( 'wgExamineId' ) |
| 33 | + logid: examine.id |
33 | 34 | } |
34 | 35 | } |
35 | 36 | |