Module:Protection banner: Difference between revisions

Content added Content deleted
Enwikipedia>Mr. Stradivarius
(expand category matching code - still buggy)
Enwikipedia>Mr. Stradivarius
(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