diff options
author | Steven Barth <steven@midlink.org> | 2008-07-29 20:32:02 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-07-29 20:32:02 +0000 |
commit | 5b43543226fa29dc7d899e9fc82f0179aefcb56b (patch) | |
tree | 08ced0102f805fd74fd83088deda0a3d9878d9a8 /libs/web/luasrc/config.lua | |
parent | a478f25f513cb26e671f8a1c204bafb9b66cfabf (diff) |
libs/web: Small improvements, added inline documentation
Diffstat (limited to 'libs/web/luasrc/config.lua')
-rw-r--r-- | libs/web/luasrc/config.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/web/luasrc/config.lua b/libs/web/luasrc/config.lua index 557303f88..72bd5aa92 100644 --- a/libs/web/luasrc/config.lua +++ b/libs/web/luasrc/config.lua @@ -27,5 +27,7 @@ limitations under the License. module("luci.config", function(m) - setmetatable(m, {__index = require("luci.model.uci").get_all("luci")}) + if pcall(require, "luci.model.uci") then + setmetatable(m, {__index = luci.model.uci.get_all("luci")}) + end end)
\ No newline at end of file |