This commit is contained in:
MihailRis 2025-04-26 21:58:09 +03:00
parent f944dfb51d
commit 032b5ae9dc

View File

@ -228,7 +228,10 @@ function gui.template(name, params)
local text = file.read(file.find("layouts/templates/"..name..".xml"))
text = text:gsub("%%{([^}]+)}", function(n)
local s = params[n]
if not s or #s == 0 then
if type(s) ~= "string" then
return s
end
if #s == 0 then
return
end
local e = string.escape(s)