summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-11-08 17:01:48 +0100
committerGitHub <noreply@github.com>2022-11-08 17:01:48 +0100
commit04f340ddc77173bf91802c0b093ff80743e23e01 (patch)
tree8367ffdf44eab3594a9b3ec02fa4d430a07ee0bc
parent98842ccee86c6db191434484fb85126124844ab0 (diff)
parent37468c99a3851c67d82e9c9307547188d6ca23f5 (diff)
Merge pull request #6085 from etactica/master-tpl-fixes
lua-runtime: template: fix "tpl" refactoring
-rw-r--r--modules/luci-lua-runtime/luasrc/template.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-lua-runtime/luasrc/template.lua b/modules/luci-lua-runtime/luasrc/template.lua
index b7cc56e1cc..b6b9af0bad 100644
--- a/modules/luci-lua-runtime/luasrc/template.lua
+++ b/modules/luci-lua-runtime/luasrc/template.lua
@@ -95,7 +95,7 @@ context.viewns = setmetatable({
end;
translate = i18n.translate;
translatef = i18n.translatef;
- export = function(k, v) if tpl.context.viewns[k] == nil then tpl.context.viewns[k] = v end end;
+ export = function(k, v) if context.viewns[k] == nil then context.viewns[k] = v end end;
striptags = xml.striptags;
pcdata = xml.pcdata;
ifattr = function(...) return _ifattr(...) end;