mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Mino user_scripts fix
This commit is contained in:
parent
3cafa97aba
commit
c03de01534
2 changed files with 8 additions and 2 deletions
|
|
@ -68,8 +68,15 @@ local benchmarks = {}
|
|||
|
||||
function user_scripts.getSubdirectoryPath(script_type, subdir, is_pro)
|
||||
local prefix = ternary(is_pro, PRO_CALLBACKS_DIR, CALLBACKS_DIR)
|
||||
local path
|
||||
|
||||
if not isEmptyString(subdir) and subdir ~= "." then
|
||||
path = string.format("%s/%s/%s", prefix, script_type.parent_dir, subdir)
|
||||
else
|
||||
path = string.format("%s/%s", prefix, script_type.parent_dir)
|
||||
end
|
||||
|
||||
return os_utils.fixPath(string.format("%s/%s/%s", prefix, script_type.parent_dir, subdir))
|
||||
return os_utils.fixPath(path)
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue