Module:Protection banner: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(expand category matching code - still buggy)
(rename the category function as "getCategoryName")
Line 120: Line 120:
end
end


function p.matchCategory(cats, protType, protLevel, namespace, reason, expiry)
function p.getCategoryName(cats, protType, protLevel, namespace, reason, expiry)
-- Preprocess parameters
-- Preprocess parameters
cats = cats or categories
cats = cats or categories