Open main menu

Changes

Module:Protection banner

137 bytes removed, 03:58, 19 July 2014
only use one display value for edit requests
local action = self._protectionObj.action
local level = self._protectionObj.level
-- Get the display message key.
local key
if action == 'edit' and level == 'autoconfirmed' then
key = 'edit-request-semi-display'
else
key = 'edit-request-full-display'
end
local display = self:_getExpandedMessage(key)
-- Get the edit request type.
requestType = requestType or 'full'
-- Get the display value.
local display = self:_getExpandedMessage('edit-request-display')
 
return mEditRequest.exportLinkToLua{type = requestType, display = display}
end
Anonymous user