Index: trunk/extensions/ArticleFeedbackv5/modules/ext.articleFeedbackv5/ext.articleFeedbackv5.startup.js |
— | — | @@ -55,10 +55,11 @@ |
56 | 56 | && mw.util.getParamValue( 'printable' ) != 'yes' |
57 | 57 | ) { |
58 | 58 | // Collect categories for intersection tests |
| 59 | + // Clone the arrays so we can safely modify them |
59 | 60 | var categories = { |
60 | | - 'include': mw.config.get( 'wgArticleFeedbackv5Categories', [] ), |
61 | | - 'exclude': mw.config.get( 'wgArticleFeedbackv5BlacklistCategories', [] ), |
62 | | - 'current': mw.config.get( 'wgCategories', [] ) |
| 61 | + 'include': [].concat( mw.config.get( 'wgArticleFeedbackv5Categories', [] ) ), |
| 62 | + 'exclude': [].concat( mw.config.get( 'wgArticleFeedbackv5BlacklistCategories', [] ) ), |
| 63 | + 'current': [].concat( mw.config.get( 'wgCategories', [] ) ) |
63 | 64 | }; |
64 | 65 | |
65 | 66 | var enable = false; |