summaryrefslogtreecommitdiffhomepage
path: root/core/src/template.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/template.lua')
-rw-r--r--core/src/template.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/template.lua b/core/src/template.lua
index e74db7d64..6f4e4adb0 100644
--- a/core/src/template.lua
+++ b/core/src/template.lua
@@ -52,7 +52,8 @@ compiler_enable_bytecode = false
viewns = {
translate = function(...) return require("ffluci.i18n").translate(...) end,
config = function(...) return require("ffluci.model.uci").get(...) or "" end,
- controller = ffluci.http.env.SCRIPT_NAME or "",
+ controller = ffluci.http.dispatcher(),
+ uploadctrl = ffluci.http.dispatcher_upload(),
media = ffluci.config.main.mediaurlbase,
images = ffluci.config.main.imagebase,
write = io.write,