projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9a3de2
)
Rewrote luci.config
author
Steven Barth
<steven@midlink.org>
Tue, 2 Sep 2008 14:24:00 +0000
(14:24 +0000)
committer
Steven Barth
<steven@midlink.org>
Tue, 2 Sep 2008 14:24:00 +0000
(14:24 +0000)
libs/web/luasrc/config.lua
patch
|
blob
|
history
diff --git
a/libs/web/luasrc/config.lua
b/libs/web/luasrc/config.lua
index 955ede9adbebd2c69483895fc9b202c085bc638a..12d7e8c91743e95691771ab8e63a94f026edaf39 100644
(file)
--- 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)