summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc/dispatcher.lua
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-06-05 19:16:38 +0000
committerSteven Barth <steven@midlink.org>2008-06-05 19:16:38 +0000
commitdd9606825da5d73883b8313f5af905ea1b2a4d7d (patch)
tree1f853ae56dd8e3051698ac6d0a38d61bf6d6997f /libs/web/luasrc/dispatcher.lua
parent75f3dbaa6136a1288fbe92d80fc127f5228f5d64 (diff)
* Merged Luci to use native UCI-library
Diffstat (limited to 'libs/web/luasrc/dispatcher.lua')
-rw-r--r--libs/web/luasrc/dispatcher.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua
index ef6c6881b4..7ff4031a62 100644
--- a/libs/web/luasrc/dispatcher.lua
+++ b/libs/web/luasrc/dispatcher.lua
@@ -162,6 +162,7 @@ function dispatch()
tpl.viewns.uploadctrl = luci.http.dispatcher_upload()
tpl.viewns.media = luci.config.main.mediaurlbase
tpl.viewns.resource = luci.config.main.resourcebase
+ tpl.viewns.uci = require("luci.model.uci").config
tpl.viewns.REQUEST_URI = luci.http.env.SCRIPT_NAME .. luci.http.env.PATH_INFO