diff options
author | Steven Barth <steven@midlink.org> | 2008-05-14 09:09:03 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-05-14 09:09:03 +0000 |
commit | 178da94019721cd9386f415a8f002ae714057e88 (patch) | |
tree | 8eeae7edffc1f6544872de4d6652bb55c11bcbbc /core/src/template.lua | |
parent | bac04441f11f29b53d6c24ed9a32244cd95dce25 (diff) |
* CBI: Minor changes
Diffstat (limited to 'core/src/template.lua')
-rw-r--r-- | core/src/template.lua | 2 |
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, |