Jump to content

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 configObj = self._configObj
local reasonsWithoutExpiryCheck = self._configObj.cfg.reasonsWithoutExpiryCheck
local protectionObj = self._protectionObj
local expiryCheckActions = self._configObj.cfg.expiryCheckActions
local expiry = self._protectionObj.expiry
local reasonsWithoutExpiryCheck = configObj.cfg.reasonsWithoutExpiryCheck
local action = self._protectionObj.action
local expiryCheckActions = configObj.cfg.expiryCheckActions
local reason = self._protectionObj.reason
local expiry = protectionObj.expiry
local action = protectionObj.action
local reason = protectionObj.reason
if not expiry
if not expiry
Line 875: Line 872:
and not reasonsWithoutExpiryCheck[reason]
and not reasonsWithoutExpiryCheck[reason]
then
then
self:setName(configObj.msg['tracking-category-expiry'])
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 protectionObj = self._protectionObj
local titleObj = self._titleObj
local titleObj = self._titleObj
local action = self._protectionObj.action
local action = protectionObj.action
local level = self._protectionObj.level
local level = protectionObj.level
local namespace = titleObj.namespace
local namespace = titleObj.namespace
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.