Improves use of classes for user script templates

This commit is contained in:
Simone Mainardi 2021-02-19 14:44:44 +01:00
parent 1dd93e7845
commit 33d035b96c
8 changed files with 24 additions and 25 deletions

View file

@ -1281,7 +1281,7 @@ function user_scripts.updateScriptConfig(confid, script_key, subdir, new_config,
end
if conf.enabled then
valid, rv_or_err = script.template:parseConfig(script, conf.script_conf)
valid, rv_or_err = script.template:parseConfig(conf.script_conf)
else
-- Assume the config is valid when the script is disabled to simplify the check
valid = true