Module:Sprite: Difference between revisions
Only remove categories from translation pages, instead of all subpages |
|||
| Line 211: | Line 211: | ||
addProtection( protection ) | addProtection( protection ) | ||
end | end | ||
local cascading = title.cascadingProtection.restrictions[action] or {} | |||
if #cascading > 0 then | |||
table.insert( protections, 'protect' ) | table.insert( protections, 'protect' ) | ||
end | |||
for _, protection in ipairs( cascading ) do | |||
addProtection( protection ) | |||
end | end | ||