Modul:Protection banner: Unterschied zwischen den Versionen

get a few other changes from the ec
(and finally protectionDate)
(get a few other changes from the ec)
Zeile 861: Zeile 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
Zeile 875: Zeile 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)
Zeile 889: Zeile 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
Zeile 915: Zeile 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
Anonymer Benutzer