Template/Fixup
* fix directly adding dataloader to PageTemplate
This commit is contained in:
parent
6d86f880f4
commit
bc112b2b16
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue