Zum Inhalt springen

Modul:Protection banner: Unterschied zwischen den Versionen

K
fix cfg field name
(make Protection:needsExpiry even more complicated to allow for trinary logic in cfg.expiryCheckActions)
K (fix cfg field name)
Zeile 301: Zeile 301:
function Protection:needsExpiry()
function Protection:needsExpiry()
local cfg = self._cfg
local cfg = self._cfg
local actionNeedsCheck = cfg.expirycheckactions[self.action]
local actionNeedsCheck = cfg.expiryCheckActions[self.action]
return not self.expiry and (
return not self.expiry and (
actionNeedsCheck or (
actionNeedsCheck or (
Anonymer Benutzer