Module:Protection banner: Difference between revisions

fix variable typo
(move the image name function to its proper place and rename it)
(fix variable typo)
Line 258: Line 258:
and cfg.banners[obj.action][args.reason]
and cfg.banners[obj.action][args.reason]
then
then
data = cfg.banners[obj.action][obj.reason]
data = cfg.banners[obj.action][args.reason]
elseif cfg.defaultBanners[obj.action] then
elseif cfg.defaultBanners[obj.action] then
data = cfg.defaultBanners[obj.action]
data = cfg.defaultBanners[obj.action]