Open main menu

Changes

Module:Protection banner

21 bytes removed, 01:21, 10 July 2014
turn Blurb.formatDate into Blurb:_formatDate so that it can access the config
end
-- Static Private methods --
function Blurb.formatDate:_formatDate(num)
-- Formats a Unix timestamp into dd Month, YYYY format.
lang = lang or mw.language.getContentLanguage()
end
end
 
-- Private methods --
function Blurb:_getExpandedMessage(msgKey)
local expiry = self._protectionObj.expiry
if type(expiry) == 'number' then
return Blurb.formatDateself:_formatDate(expiry)
else
return expiry
local protectionDate = self._protectionObj.protectionDate
if type(protectionDate) == 'number' then
return Blurb.formatDateself:_formatDate(protectionDate)
else
return protectionDate
Anonymous user