https://bugzilla.wikimedia.org/show_bug.cgi?id=24214
--- Comment #8 from Chuck <[email protected]> --- Here's a fix since the data is right there in mw.user.options. Add this function to mediawiki.searchSuggest.js: // Get current namespaces function getNamespaces() { var state = null, namespaces = '', i = 0, limit = 1000; do { state = mw.user.options.get('searchNs'+i); switch (state) { case true: namespaces += i+'|'; case null: break; } i++; } while (state != null); if (namespaces.length > 1) { namespaces = namespaces.substring(0, namespaces.length-1); } return namespaces; } Then, on line 149, change "namespace: 0," to "namespace: getNamespaces(),". Code I am referencing: https://git.wikimedia.org/blob/mediawiki%2Fcore.git/8bb12babcd4c791c50aa53f14f68224162aaef80/resources%2Fmediawiki%2Fmediawiki.searchSuggest.js -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
