summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-statistics/root/usr/bin/stat-genconfig
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-statistics/root/usr/bin/stat-genconfig')
-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 c106ed39d..609fd61b9 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.Session()
-local sections = uci:sections( "luci_statistics" )
+local uci = luci.model.uci
+local sections = uci.get_all( "luci_statistics" )
function section( plugin )