Module:Protection banner: Difference between revisions
fix method name
(use Protection:isProtected instead of checking using getLevel) |
(fix method name) |
||
Line 592: | Line 592: | ||
local action = protectionObj:getAction() | local action = protectionObj:getAction() | ||
local level = protectionObj: | local level = protectionObj:getLevel() | ||
local expiry = protectionObj:getExpiry() | local expiry = protectionObj:getExpiry() | ||
local namespace = titleObj.namespace | local namespace = titleObj.namespace | ||
Line 607: | Line 607: | ||
return nil | return nil | ||
end | end | ||
-- Deal with regular protection types. | -- Deal with regular protection types. | ||
local images = self._configObj:getConfigTable('images') | local images = self._configObj:getConfigTable('images') |