summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-statistics/luasrc/controller/luci_statistics
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-12-12 14:13:07 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-12-12 14:13:07 +0000
commitc833c967505440717343dc5bd580dbb286e54b3f (patch)
tree6b5374aa19a1b66ecf236bb70a853aeb71e67e5b /applications/luci-statistics/luasrc/controller/luci_statistics
parent45985e01de4777ee634e419ad374c3e4720471aa (diff)
applications/luci-statistics: fix controller (#7344)
Diffstat (limited to 'applications/luci-statistics/luasrc/controller/luci_statistics')
-rw-r--r--applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua6
1 files changed, 3 insertions, 3 deletions
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 a49c40492a..ccea56e2b8 100644
--- 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
- 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
@@ -99,7 +99,7 @@ function index()
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"
@@ -115,7 +115,7 @@ function index()
-- 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