Add user_scripts subdir listing function

This commit is contained in:
emanuele-f 2019-12-23 10:28:07 +01:00
parent cc8c98581d
commit 6d4a1fda21
5 changed files with 63 additions and 7 deletions

View file

@ -44,7 +44,7 @@ local scripts = user_scripts.load(getSystemInterfaceId(), script_type, subdir)
local result = {}
for script_name, script in pairs(scripts.modules) do
if script.gui.i18n_title and script.gui.i18n_description then
if script.gui and script.gui.i18n_title and script.gui.i18n_description then
local hooks = user_scripts.getConfigsetHooksConf(config_set, script, subdir)
local enabled_hooks = {}
local edit_url = nil