mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Fix error with multisite variables when requesting default server
This commit is contained in:
parent
f81b0bb4da
commit
70f227feb3
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ utils.get_variable = function(var, site_search)
|
|||
end
|
||||
local value = variables["global"][var]
|
||||
-- Site search case
|
||||
local multisite = site_search and variables["global"]["MULTISITE"] == "yes" and ngx.var.server_name
|
||||
local multisite = site_search and variables["global"]["MULTISITE"] == "yes" and ngx.var.server_name ~= "_"
|
||||
if multisite then
|
||||
value = variables[ngx.var.server_name][var]
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue