Module:Protected edit request/active: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
Undid revision 634321546 by Jackmcbarn (talk): this bug was unrelated to this template
Jackmcbarn (talk | contribs)
throw an error for unknown protection levels
Line 281:
function blurb:makeProtectionText()
local boxProtectionLevel = self.boxProtectionLevel
local levels = {unprotected['*'] = 'unprotected', autoconfirmed = 'semi-protected', templateeditor = 'template-protected', sysop = 'fully protected'}
for level, protectionText in pairs(levels) do
if level == boxProtectionLevel then
Line 287:
end
end
error('Unknown protection level ' .. boxProtectionLevel)
end