Template/Fixup

* fix directly adding dataloader to PageTemplate
This commit is contained in:
Sarjuuk
2025-10-03 17:41:07 +02:00
parent 6d86f880f4
commit bc112b2b16

View File

@@ -217,7 +217,7 @@ class TemplateResponse extends BaseResponse
if (!$this->result)
$this->dataLoader = array_merge($this->dataLoader, $dataFiles);
else
$this->result->addDataLoader($dataFiles);
$this->result->addDataLoader(...$dataFiles);
}
public static function pageStatsHook(Template\PageTemplate &$pt, array &$stats) : void