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.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/template.lua b/core/src/template.lua
index 7ac47cbbe..134e0a6a0 100644
--- a/core/src/template.lua
+++ b/core/src/template.lua
@@ -52,7 +52,7 @@ 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,
+ controller = ffluci.http.env.SCRIPT_NAME or "",
media = ffluci.config.main.mediaurlbase,
write = io.write,
include = function(name) Template(name):render(getfenv(2)) end,