Module:Protection banner: Difference between revisions

don't keep the whole export table around when we only need one thing from it
Enwikipedia>Mr. Stradivarius
(fix method name)
Enwikipedia>Jackmcbarn
(don't keep the whole export table around when we only need one thing from it)
Line 5:
require('Module:No globals')
local class = require('Module:Middleclass').class
local mFileLinknewFileLink = require('Module:File link').new
local mProtectionLeveleffectiveProtectionLevel = require('Module:Effective protection level')._main
local yesno = require('Module:Yesno')
 
Line 105:
-- Set level
do
local level = mProtectionLevel._maineffectiveProtectionLevel(self._action, titleObj)
if level == 'accountcreator' then
-- Lump titleblacklisted pages in with template-protected pages,
Line 635:
or self._configObj:getMessage('image-filename-default')
or 'Transparent.gif'
return mFileLink.newnewFileLink(filename)
:width(self._imageWidth or 20)
:alt(self._imageAlt)