Module:Protection banner: Difference between revisions
get a few other changes from the ec
(and finally protectionDate) |
(get a few other changes from the ec) |
||
Line 861: | Line 861: | ||
function ExpiryCategory:render() | function ExpiryCategory:render() | ||
local | local reasonsWithoutExpiryCheck = self._configObj.cfg.reasonsWithoutExpiryCheck | ||
local expiryCheckActions = self._configObj.cfg.expiryCheckActions | |||
local expiry = self._protectionObj.expiry | |||
local action = self._protectionObj.action | |||
local expiryCheckActions = | local reason = self._protectionObj.reason | ||
local expiry = | |||
local action = | |||
local reason = | |||
if not expiry | if not expiry | ||
Line 875: | Line 872: | ||
and not reasonsWithoutExpiryCheck[reason] | and not reasonsWithoutExpiryCheck[reason] | ||
then | then | ||
self:setName( | self:setName(self._configObj.msg['tracking-category-expiry']) | ||
end | end | ||
return Category.render(self) | return Category.render(self) | ||
Line 889: | Line 886: | ||
local configObj = self._configObj | local configObj = self._configObj | ||
local protectionObj = self._protectionObj | local protectionObj = self._protectionObj | ||
local expiry = protectionObj.expiry | local expiry = protectionObj.expiry | ||
local action = protectionObj.action | local action = protectionObj.action | ||
Line 915: | Line 911: | ||
function TemplateCategory:render() | function TemplateCategory:render() | ||
local configObj = self._configObj | local configObj = self._configObj | ||
local titleObj = self._titleObj | local titleObj = self._titleObj | ||
local action = self._protectionObj.action | |||
local action = | local level = self._protectionObj.level | ||
local level = | |||
local namespace = titleObj.namespace | local namespace = titleObj.namespace | ||