Modul:Protection banner: Unterschied zwischen den Versionen
no need to special case indef expiry. if it's indef, the messages that get used don't use it anyway
(simplify _substituteParameters) |
(no need to special case indef expiry. if it's indef, the messages that get used don't use it anyway) |
||
Zeile 471: | Zeile 471: | ||
function Blurb:_makeExpiryParameter() | function Blurb:_makeExpiryParameter() | ||
local expiry = self._protectionObj.expiry | local expiry = self._protectionObj.expiry | ||
if | if type(expiry) == 'number' then | ||
return Blurb.formatDate(expiry) | return Blurb.formatDate(expiry) | ||
else | |||
return expiry | return expiry | ||
end | end |