Zum Inhalt springen

Modul:Protection banner: Unterschied zwischen den Versionen

only use one display value for edit requests
(remove four deprecated parameters from Blurb:_substituteParameters)
(only use one display value for edit requests)
Zeile 434: Zeile 434:
local action = self._protectionObj.action
local action = self._protectionObj.action
local level = self._protectionObj.level
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.
-- Get the edit request type.
Zeile 455: Zeile 446:
requestType = requestType or 'full'
requestType = requestType or 'full'
-- Get the display value.
local display = self:_getExpandedMessage('edit-request-display')
return mEditRequest.exportLinkToLua{type = requestType, display = display}
return mEditRequest.exportLinkToLua{type = requestType, display = display}
end
end
Anonymer Benutzer