mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Fixes flow page error
This commit is contained in:
parent
fc89dd11cc
commit
6c2a0f64cd
1 changed files with 2 additions and 5 deletions
|
|
@ -29,8 +29,7 @@ dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua")
|
|||
|
||||
-- nDPI application and category
|
||||
local application = _GET["application"]
|
||||
local appId = application
|
||||
|
||||
|
||||
if tonumber(application) then
|
||||
application = interface.getnDPIProtoName(tonumber(application))
|
||||
end
|
||||
|
|
@ -80,9 +79,7 @@ local mini_title = i18n("flow_details.purge_time", { purge_time = ntop.getPref("
|
|||
if (page == "flows" or page == nil) then
|
||||
local active_msg = getFlowsTableTitle()
|
||||
|
||||
if(appId ~= nil) then
|
||||
active_msg = active_msg .." <A HREF=\""..ntop.getHttpPrefix().."/lua/hosts_stats.lua?protocol=".. tostring(appId).."\" title=\"".. i18n("host_details.hosts_using_proto", { proto = interface.getnDPIProtoName(tonumber(appId)) }) .."\"><i class=\"fa-solid fa-timeline\" alt=></i></A>"
|
||||
end
|
||||
active_msg = active_msg .." <A HREF=\""..ntop.getHttpPrefix().."/lua/hosts_stats.lua?protocol=".. tostring(appId).."\" title=\"".. i18n("host_details.hosts_using_proto", { proto = application }) .."\"><i class=\"fa-solid fa-timeline\" alt=></i></A>"
|
||||
|
||||
page_utils.print_page_title(active_msg, mini_title)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue