Anonymous user
Module:Protection banner: Difference between revisions
make Blurb be responsible for setting its own fields
Enwikipedia>Jackmcbarn (condense _main and switch Blurb arg order) |
Enwikipedia>Jackmcbarn (make Blurb be responsible for setting its own fields) |
||
Line 339:
local Blurb = class('Blurb')
function Blurb:initialize(protectionObj, args, cfg)
self._cfg = cfg
self._protectionObj = protectionObj
self._bannerConfig = protectionObj.bannerConfig
self._title = protectionObj.title
self._section = args.section▼
end
Line 686 ⟶ 689:
-- Public methods --
▲ self._deletionDiscussionPage = page
▲ self._username = username
▲ self._section = section
function Blurb:makeReasonText()
Line 894 ⟶ 885:
-- Initialise protection and blurb objects
local protectionObj = Protection:new(args, cfg)
local blurbObj = Blurb:new(protectionObj, args, cfg)
local ret = {}
|