Changes
rm some locals that only get used once
--]]
local cats = cfg.protectionCategories
for i = 1, 2^noActive do
local key = {}
local attempt = cats[key]
if attempt then
end
end
end
function Protection:makeExpiryCategory()
local reasonsWithoutExpiryCheck cfg = self._cfg.reasonsWithoutExpiryCheck local expiryCheckActions = self._cfg.expiryCheckActions local cat
if not self.expiry
and cfg.expiryCheckActions[self.action]
and self.reason -- the old {{pp-protected}} didn't check for expiry
and not cfg.reasonsWithoutExpiryCheck[self.reason]
then
end
end
function Protection:makeErrorCategory()
local cfg expiry = self._cfg local catexpiry
if not self:isProtected()
or type(self.expiry) == 'number' and self.expiry < os.time()
then
end
end
function Protection:makeTemplateCategory()
local cfg action, namespace = self._cfg local title = action, self.title local cat.namespace
if self.level == 'templateeditor'
and (
(self.action ~= 'edit' and self.action ~= 'move') or (title.namespace ~= 10 and title.namespace ~= 828)
)
then
end
end
function Blurb.makeFullUrl(page, query, display)
end
-- Private methods --
function Blurb:_getExpandedMessage(msgmsgKey) local msg = return self:_substituteParameters(self._cfg.msg[msgmsgKey] return self:_substituteParameters(msg)
end