scripts/check_site_lib.lua: introduce in_site() and in_domain() helpers
These helpers are no-ops for now, until the actual multi-domain support is added.
This commit is contained in:
parent
b520bf5c50
commit
8d8d4fa0c3
@ -1,3 +1,12 @@
|
||||
function in_site(var)
|
||||
return var
|
||||
end
|
||||
|
||||
function in_domain(var)
|
||||
return var
|
||||
end
|
||||
|
||||
|
||||
local function loadvar(varname)
|
||||
local ok, val = pcall(assert(loadstring('return site.' .. varname)))
|
||||
if ok then
|
||||
|
Loading…
Reference in New Issue
Block a user