Jump to content

Module:Protection banner: Difference between revisions

rename the category function as "getCategoryName"
(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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.