diff options
Diffstat (limited to 'libs/web/luasrc/config.lua')
-rw-r--r-- | libs/web/luasrc/config.lua | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libs/web/luasrc/config.lua b/libs/web/luasrc/config.lua index 854b128145..4eb8e46e4f 100644 --- a/libs/web/luasrc/config.lua +++ b/libs/web/luasrc/config.lua @@ -25,10 +25,9 @@ limitations under the License. ]]-- -module("luci.config", package.seeall) -require("luci.model.uci") -require("luci.util") -require("luci.sys") +local uci = require("luci.model.uci") +local util = require("luci.util") +module("luci.config") -- Warning! This is only for fallback and compatibility purporses! -- main = {} @@ -42,7 +41,7 @@ main.lang = "de" -- Now overwrite with UCI values -local ucidata = luci.model.uci.sections("luci") +local ucidata = uci.sections("luci") if ucidata then - luci.util.update(luci.config, ucidata) + util.update(_M, ucidata) end
\ No newline at end of file |