mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Template/Fixup
* fix directly adding dataloader to PageTemplate
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user