diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-08-20 17:04:03 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-08-20 17:04:03 +0000 |
commit | 0938135dbbf8681bbd287612e3f2ed4d6fba3f35 (patch) | |
tree | 987b86a8d9ba2a3dc1a88d2b5080a770b6cab25d /libs/web/luasrc | |
parent | 18dfd21c39e6ddcd6936174af654a05b742c51b7 (diff) |
* luci/libs: add striptags() to global dispatcher namespace
Diffstat (limited to 'libs/web/luasrc')
-rw-r--r-- | libs/web/luasrc/dispatcher.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/web/luasrc/dispatcher.lua b/libs/web/luasrc/dispatcher.lua index 4253fc04a..dc551916a 100644 --- a/libs/web/luasrc/dispatcher.lua +++ b/libs/web/luasrc/dispatcher.lua @@ -26,6 +26,7 @@ limitations under the License. --- LuCI web dispatcher. module("luci.dispatcher", package.seeall) +require("luci.util") require("luci.init") require("luci.http") require("luci.sys") @@ -154,6 +155,7 @@ function dispatch(request) tpl.context.viewns = viewns viewns.write = luci.http.write viewns.translate = function(...) return require("luci.i18n").translate(...) end + viewns.striptags = luci.util.striptags viewns.controller = luci.http.getenv("SCRIPT_NAME") viewns.media = luci.config.main.mediaurlbase viewns.resource = luci.config.main.resourcebase |