luci-app-statistics: only include lua modules into local scope
[project/luci.git] / applications / luci-app-statistics / luasrc / model / cbi / luci_statistics / dns.lua
index dafcc452ccfd87e76a3a44d9eae16e3663fb12e4..4245018661d1c67aa0e529def4474b561ad9fe95 100644 (file)
@@ -1,7 +1,7 @@
 -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <jow@openwrt.org>
 -- Licensed to the public under the Apache License 2.0.
 
-require("luci.sys")
+local sys = require("luci.sys")
 
 
 m = Map("luci_statistics",
@@ -24,7 +24,7 @@ interfaces.widget = "select"
 interfaces.size   = 5
 interfaces:depends( "enable", 1 )
 interfaces:value("any")
-for k, v in pairs(luci.sys.net.devices()) do
+for k, v in pairs(sys.net.devices()) do
         interfaces:value(v)
 end