Module:Protection banner: Difference between revisions
m
remove unnecessary whitespace and copy edit one of the error messages
(allow bannerConfig table fields to be functions) |
m (remove unnecessary whitespace and copy edit one of the error messages) |
||
Line 641: | Line 641: | ||
if not key or not Blurb.bannerTextFields[key] then | if not key or not Blurb.bannerTextFields[key] then | ||
error(string.format( | error(string.format( | ||
'"%s" is not a valid banner field', | '"%s" is not a valid banner config field', | ||
tostring(key) | tostring(key) | ||
), 2) | ), 2) | ||
Line 662: | Line 662: | ||
return self:_substituteParameters(msg) | return self:_substituteParameters(msg) | ||
end | end | ||
end | end | ||
-------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |