Fix scripts path

This commit is contained in:
emanuele-f 2019-06-13 16:04:05 +02:00
parent 8c441a5bf6
commit 4d9739c906
3 changed files with 7 additions and 7 deletions

View file

@ -227,8 +227,8 @@ end
-- ##############################################
function system_scripts.getPageScriptPath(page_script)
return(ntop.getHttpPrefix() .. "/lua/system/" .. page_script)
function system_scripts.getPageScriptPath(probe)
return(ntop.getHttpPrefix() .. "/lua/system/" .. probe.page_script)
end
-- ##############################################
@ -255,7 +255,7 @@ function system_scripts.getSystemMenuEntries()
for idx, probe in pairs(rv) do
rv[idx] = {
label = probe.name,
url = system_scripts.getPageScriptPath(probe.page_script),
url = system_scripts.getPageScriptPath(probe),
}
end