Skip to content

Commit

Permalink
Fix Page Collections problem with @page.modular (#1178)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vivien HAAG authored and rhukster committed Dec 2, 2016
1 parent c64cdb5 commit 10da784
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions system/src/Grav/Common/Page/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ public function summary($size = null)
}

$summary = Utils::truncateHTML($content, $size);

return html_entity_decode($summary);
}

Expand Down Expand Up @@ -2419,7 +2419,10 @@ public function evaluate($value)
switch ($parts[0]) {
case 'modular':
$results = new Collection();
$results = $results->addPage($page)->Modular();
foreach ($page->children() as $child) {
$results = $results->addPage($child);
}
$results->modular();
break;
case 'page':
case 'self':
Expand Down

0 comments on commit 10da784

Please sign in to comment.