Module:File link: Difference between revisions

remove "theName" field from readOnlyFields
(reduce redundant error code)
(remove "theName" field from readOnlyFields)
Line 248: Line 248:
readOnlyFields[field] = true
readOnlyFields[field] = true
end
end
readOnlyFields.theName = nil -- This is set if a filename is given to image.new, so remove it.
local function restrictedFieldError(key, restriction)
local function restrictedFieldError(key, restriction)