projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
applications/luci-statistics: fix controller (#7344)
[project/luci.git]
/
applications
/
luci-statistics
/
luasrc
/
controller
/
luci_statistics
/
luci_statistics.lua
diff --git
a/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
b/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
index a49c40492a2ef2dc14bf0666a03b8f965b4a2658..ccea56e2b85a488e6795e1a49c219fc521c5c969 100644
(file)
--- a/
applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
+++ b/
applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua
@@
-69,7
+69,7
@@
function index()
}
-- create toplevel menu nodes
}
-- create toplevel menu nodes
- local st = entry({"admin", "statistics"},
call("statistics_
index"), _("Statistics"), 80)
+ local st = entry({"admin", "statistics"},
template("admin_statistics/
index"), _("Statistics"), 80)
st.i18n = "statistics"
st.index = true
st.i18n = "statistics"
st.index = true
@@
-99,7
+99,7
@@
function index()
end
-- output views
end
-- output views
- local page = entry( { "admin", "statistics", "graph" },
call("statistics_
index"), _("Graphs"), 80)
+ local page = entry( { "admin", "statistics", "graph" },
template("admin_statistics/
index"), _("Graphs"), 80)
page.i18n = "statistics"
page.setuser = "nobody"
page.setgroup = "nogroup"
page.i18n = "statistics"
page.setuser = "nobody"
page.setgroup = "nogroup"
@@
-115,7
+115,7
@@
function index()
-- plugin menu entry
entry(
{ "admin", "statistics", "graph", plugin },
-- plugin menu entry
entry(
{ "admin", "statistics", "graph", plugin },
-
template("admin_statistics/index
"), labels[plugin], i
+
call("statistics_render
"), labels[plugin], i
).query = { timespan = span }
-- if more then one instance is found then generate submenu
).query = { timespan = span }
-- if more then one instance is found then generate submenu