From: Steven Barth Date: Tue, 2 Sep 2008 14:24:00 +0000 (+0000) Subject: Rewrote luci.config X-Git-Tag: 0.8.0~187 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=b693e1ab915b0d811dd234377afaf8127851bcaf;p=project%2Fluci.git Rewrote luci.config --- diff --git a/libs/web/luasrc/config.lua b/libs/web/luasrc/config.lua index 955ede9adb..12d7e8c917 100644 --- a/libs/web/luasrc/config.lua +++ b/libs/web/luasrc/config.lua @@ -25,9 +25,14 @@ limitations under the License. ]]-- -module("luci.config", - function(m) - if pcall(require, "luci.model.uci") then - setmetatable(m, {__index = luci.model.uci.cursor():get_all("luci")}) - end - end) \ No newline at end of file +local util = require "luci.util" + +local pcall = pcall +local require = require + + +module "luci.config" + +pcall(function() + util.update(_M, require "luci.model.uci".cursor():get_all("luci")) +end)