Module:Article history: Difference between revisions

Content deleted Content added
change the messages used with addWarning to "warning" instead of "error"
change invalid action oldids from an error to a warning
Line 585:
obj.oldid = tonumber(data.oldid)
if data.oldid and (not obj.oldid or not isPositiveInteger(obj.oldid)) then
obj:raiseError(.oldid = nil
obj:addWarning(
obj:message(
'action-errorwarning-invalid-oldid',
data.oldid,
obj:getParameter('oldid')
),
obj:message('action-errorwarning-invalid-oldid-help')
)
end