luci-0.10: merge r8082
authorJo-Philipp Wich <jow@openwrt.org>
Mon, 12 Dec 2011 14:17:35 +0000 (14:17 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Mon, 12 Dec 2011 14:17:35 +0000 (14:17 +0000)
applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua

index 5c1376435a54edf7d729ec50cf4475d519816bf1..5600939b512afb3fc4520f1f08a77bf921b5ee13 100644 (file)
@@ -66,7 +66,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
        
@@ -97,7 +97,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"