https://bugzilla.wikimedia.org/show_bug.cgi?id=24214
--- Comment #10 from Chuck <[email protected]> --- I didn't realize how custom namespaces work so the above code wont work. Something like this should though: // Get current namespaces function getNamespaces() { var namespaces = '', options = mw.user.options.get(); for(var opt in options) { if(opt.substring(0,8) === 'searchNs') { if(options[opt] === true) { namespaces += opt.substr(8)+'|'; } } } if (namespaces.length > 1) { return namespaces.substring(0, namespaces.length-1); } else { return 0; } } -- 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
