PageTemplate/Fixup

* really fix merging jsGlobals from comments/etc. into existing PageTemplate
This commit is contained in:
Sarjuuk
2025-10-10 20:21:41 +02:00
parent b832fc172c
commit a96f6c4cdf

View File

@@ -626,7 +626,7 @@ class TemplateResponse extends BaseResponse
foreach ($this->jsGlobals as $type => [, $data, ]) foreach ($this->jsGlobals as $type => [, $data, ])
{ {
if (!isset($ptJSG[$type]) || $type == Type::USER) if (!isset($ptJSG[$type]) || $type == Type::USER)
$ptJSGs[$type] = $this->jsGlobals[$type]; $ptJSG[$type] = $this->jsGlobals[$type];
else else
Util::mergeJsGlobals($ptJSG[$type][1], $data); Util::mergeJsGlobals($ptJSG[$type][1], $data);
} }