summaryrefslogtreecommitdiffhomepage
path: root/libs/web/luasrc/template.lua
diff options
context:
space:
mode:
Diffstat (limited to 'libs/web/luasrc/template.lua')
-rw-r--r--libs/web/luasrc/template.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/web/luasrc/template.lua b/libs/web/luasrc/template.lua
index 659c7216d8..907403fcbb 100644
--- a/libs/web/luasrc/template.lua
+++ b/libs/web/luasrc/template.lua
@@ -30,12 +30,13 @@ module("luci.template", package.seeall)
require("luci.config")
require("luci.util")
require("luci.fs")
+require("luci.sys")
require("luci.http")
luci.config.template = luci.config.template or {}
-viewdir = luci.config.template.viewdir or luci.sys.libpath() .. "/view"
-compiledir = luci.config.template.compiledir or luci.sys.libpath() .. "/view"
+viewdir = luci.config.template.viewdir or luci.util.libpath() .. "/view"
+compiledir = luci.config.template.compiledir or luci.util.libpath() .. "/view"
-- Compile modes: