summaryrefslogtreecommitdiffhomepage
path: root/libs/httpd/host
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-27 08:53:40 +0000
committerSteven Barth <steven@midlink.org>2008-08-27 08:53:40 +0000
commitd463d0b8357764ca9018549fa624c428f56fcd87 (patch)
tree5ef47bb6549a33c40415774b949fa23be5cfd3cb /libs/httpd/host
parent9d0c00590d2e232d66588567da2048fc64ef940a (diff)
Renamed reworked UCI API to uci2 to allow a peaceful coexistence with the old one
Minor bugfixes
Diffstat (limited to 'libs/httpd/host')
-rwxr-xr-xlibs/httpd/host/runluci6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/httpd/host/runluci b/libs/httpd/host/runluci
index 5a7e8fd6f..f150cae8d 100755
--- a/libs/httpd/host/runluci
+++ b/libs/httpd/host/runluci
@@ -17,9 +17,9 @@ vhost = luci.httpd.server.VHost()
server:set_default_vhost(vhost)
-if pcall(require, "uci") and pcall(require, "luci.model.uci") then
- luci.model.uci.cursor = function(config, ...)
- return uci.cursor(config or SYSROOT .. "/etc/config", ...)
+if pcall(require, "uci2") and pcall(require, "luci.model.uci") then
+ luci.model.uci.cursor = function(config, save)
+ return uci2.cursor(config or SYSROOT .. "/etc/config", save or SYSROOT .. "/tmp/.uci")
end
end