Module:Protection banner: Difference between revisions

get the expiry date format from a config message
(output an error category if the protection object is not created properly)
(get the expiry date format from a config message)
Line 358: Line 358:
lang.formatDate,
lang.formatDate,
lang,
lang,
'j F Y',
self._cfg.msg['expiry-date-format'] or 'j F Y',
'@' .. tostring(num)
'@' .. tostring(num)
)
)