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