Module:Documentation: Difference between revisions
add nil check for protectionLevels, as it was causing script errors on wikis with earlier versions of Scribunto
m>Mr. Stradivarius (use title.protectionLevels instead of {{PROTECTIONLEVEL}} in p.protectionTemplate) |
m>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 |