summaryrefslogtreecommitdiffhomepage
path: root/libs/cbi/luasrc/cbi.lua
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-08-13 17:14:25 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-08-13 17:14:25 +0000
commit892ed55ba08d3d5553e621e57d69a3eb8ffa4efc (patch)
tree0a2bf5a1a62005675d64d990f0064194be9972ee /libs/cbi/luasrc/cbi.lua
parent6b1be858be3f462d0e81a3fc6c3483041115c046 (diff)
libs/cbi: attach pcdata() to template scope and use it
Diffstat (limited to 'libs/cbi/luasrc/cbi.lua')
-rw-r--r--libs/cbi/luasrc/cbi.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua
index 83f5c27e7c..044993a6aa 100644
--- a/libs/cbi/luasrc/cbi.lua
+++ b/libs/cbi/luasrc/cbi.lua
@@ -1340,6 +1340,7 @@ function AbstractValue.render(self, s, scope)
scope.section = s
scope.cbid = self:cbid(s)
scope.striptags = luci.util.striptags
+ scope.pcdata = luci.util.pcdata
scope.ifattr = function(cond,key,val)
if cond then