Module:Article history: Difference between revisions

Content deleted Content added
change some self's to obj's in Action.new
add invalid action code error
Line 279:
obj.id = obj.cfg.actions[data.code] and obj.cfg.actions[data.code].id
if not obj.id then
local codeParam = obj.cfg.actionParamPrefix .. tostring(obj.paramNum)
-- @TODO: Error
obj:raiseError(
obj:message('action-error-invalid-code', data.code, codeParam),
obj:message('action-error-invalid-code-help')
)
end