X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=libs%2Fweb%2Fluasrc%2Ftemplate.lua;h=907403fcbba7d4ce79ff76475e3f5474017e571d;hp=659c7216d8ebc588fdfa1eeee085d55a2a18f65c;hb=50093ed3d97c763d344f8f6b7bf934e593a92178;hpb=76982655fa433edd885bbb80bbe74e82fca527e2;ds=sidebyside diff --git a/libs/web/luasrc/template.lua b/libs/web/luasrc/template.lua index 659c7216d..907403fcb 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: