https://bugzilla.wikimedia.org/show_bug.cgi?id=24214

--- Comment #9 from Chuck <[email protected]> ---
One adjustment on the return so it always at least sends 0:

        // 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) {
                return namespaces.substring(0, namespaces.length-1);
            }
            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

Reply via email to