Changes

Jump to navigation Jump to search

Module:Protection banner

90 bytes removed, 18:26, 29 June 2014
no need to special case indef expiry. if it's indef, the messages that get used don't use it anyway
function Blurb:_makeExpiryParameter()
local expiry = self._protectionObj.expiry
if expiry == 'indef' then return nil elseif type(expiry) == 'number' then
return Blurb.formatDate(expiry)
elseif expiry then -- Expiry is an error string.else
return expiry
end
Anonymous user

Navigation menu