Anonymous user
Module:Documentation: Difference between revisions
add nil check for protectionLevels, as it was causing script errors on wikis with earlier versions of Scribunto
(use title.protectionLevels instead of {{PROTECTIONLEVEL}} in p.protectionTemplate) |
(add nil check for protectionLevels, as it was causing script errors on wikis with earlier versions of Scribunto) |
||
Line 407:
end
protectionLevels = env.protectionLevels
if not protectionLevels then
return nil
end
local editLevels = protectionLevels.edit
local moveLevels = protectionLevels.move
|