Changeset 8082

Show
Ignore:
Timestamp:
12/12/11 15:13:07 (18 months ago)
Author:
jow
Message:

applications/luci-statistics: fix controller (#7344)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/applications/luci-statistics/luasrc/controller/luci_statistics/luci_statistics.lua

    r8059 r8082  
    7070 
    7171    -- create toplevel menu nodes 
    72     local st = entry({"admin", "statistics"}, call("statistics_index"), _("Statistics"), 80) 
     72    local st = entry({"admin", "statistics"}, template("admin_statistics/index"), _("Statistics"), 80) 
    7373    st.i18n = "statistics" 
    7474    st.index = true 
     
    100100 
    101101    -- output views 
    102     local page = entry( { "admin", "statistics", "graph" }, call("statistics_index"), _("Graphs"), 80) 
     102    local page = entry( { "admin", "statistics", "graph" }, template("admin_statistics/index"), _("Graphs"), 80) 
    103103          page.i18n     = "statistics" 
    104104          page.setuser  = "nobody" 
     
    116116        entry( 
    117117            { "admin", "statistics", "graph", plugin }, 
    118             template("admin_statistics/index"), labels[plugin], i 
     118            call("statistics_render"), labels[plugin], i 
    119119        ).query = { timespan = span } 
    120120