Index: trunk/extensions/ArticleFeedbackv5/modules/ext.articleFeedbackv5/ext.articleFeedbackv5.startup.js |
— | — | @@ -46,11 +46,11 @@ |
47 | 47 | 'current': mw.config.get( 'wgCategories', [] ) |
48 | 48 | }; |
49 | 49 | |
50 | | - // Categories are configured with underscores, but article's categories are returned with |
51 | | - // spaces instead. Revert to underscores here for sane comparison. |
52 | | - for( cat in categories['current'] ) { |
53 | | - categories['current'][cat] = categories['current'][cat].replace(/\s/gi, '_'); |
54 | | - } |
| 50 | + // Categories are configured with underscores, but article's categories are returned with |
| 51 | + // spaces instead. Convert to underscores here for sane comparison. |
| 52 | + for ( var cat in categories['current'] ) { |
| 53 | + categories['current'][cat] = categories['current'][cat].replace(/\s/gi, '_'); |
| 54 | + } |
55 | 55 | |
56 | 56 | // Category exclusion |
57 | 57 | var disable = false; |