Fixed ntop edition in footer

This commit is contained in:
Luca Deri 2020-01-29 22:12:13 +01:00
parent 1cfcdf5e4e
commit c1dabafcb7
2 changed files with 6 additions and 7 deletions

View file

@ -3113,21 +3113,20 @@ function printntopngRelease(info)
print(" Edition</td></tr>\n")
end
function getNtopngRelease()
if info.oem or info["version.nedge_edition"] then
function getNtopngRelease(ntopng_info)
if ntopng_info.oem or ntopng_info["version.nedge_edition"] then
return ""
end
if(info["version.enterprise_edition"]) or (info["version.nedge_enterprise_edition"]) then
if(ntopng_info["version.enterprise_edition"]) or (ntopng_info["version.nedge_enterprise_edition"]) then
return "Enterprise"
elseif(info["pro.release"]) then
elseif(ntopng_info["pro.release"]) then
return "Professional"
else
return "Community"
end
if(info["version.embedded_edition"] == true) then
if(ntopng_info["version.embedded_edition"] == true) then
return"/Embedded"
end