summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-statistics/root
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-statistics/root')
-rwxr-xr-xapplications/luci-statistics/root/usr/bin/stat-genconfig4
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-statistics/root/usr/bin/stat-genconfig b/applications/luci-statistics/root/usr/bin/stat-genconfig
index 3159f6f7f..071cff2ca 100755
--- a/applications/luci-statistics/root/usr/bin/stat-genconfig
+++ b/applications/luci-statistics/root/usr/bin/stat-genconfig
@@ -21,8 +21,8 @@ require("luci.sys.iptparser")
require("luci.util")
local ipt = luci.sys.iptparser.IptParser()
-local uci = luci.model.uci
-local sections = uci.get_all( "luci_statistics" )
+local uci = luci.model.uci.cursor()
+local sections = uci:get_all( "luci_statistics" )
function section( plugin )