Skip to content

Commit

Permalink
Fix $page variable in modules
Browse files Browse the repository at this point in the history
  • Loading branch information
medienbaecker committed May 22, 2023
1 parent 404ae15 commit e1472e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function toString(): string {
foreach ($this->data() as $module) {
$moduleTemplate = new Template($module->intendedTemplate());
$html .= $moduleTemplate->render([
'page' => $module->parent(),
'page' => $module->parents()->first(),
'module' => $module,
'site' => site(),
]);
Expand Down

0 comments on commit e1472e1

Please sign in to comment.