Modul:File link: Unterschied zwischen den Versionen
remove "theName" field from readOnlyFields
(reduce redundant error code) |
(remove "theName" field from readOnlyFields) |
||
Zeile 248: | Zeile 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) |