Skip to content

Commit

Permalink
Fix ChildPages component to display localized page titles (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjauvin authored Oct 5, 2020
1 parent 2393d02 commit 9fa7890
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/ChildPages.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function onRun()

if ($this->childPages) {
foreach ($this->childPages as $childPage) {
$viewBag = $childPage->settings['components']['viewBag'];
$viewBag = $childPage->viewBag;
$this->pages = array_merge($this->pages, [[
'url' => @$viewBag['url'],
'title' => @$viewBag['title'],
Expand All @@ -57,4 +57,4 @@ public function onRun()
}
}
}
}
}

0 comments on commit 9fa7890

Please sign in to comment.