mirror of
https://github.com/getgrav/grav.git
synced 2026-03-05 12:01:37 +01:00
fix bug in collection filtering
This commit is contained in:
@@ -361,12 +361,13 @@ class Collection extends Iterator
|
||||
{
|
||||
$routable = [];
|
||||
|
||||
foreach (array_keys($this->items) as $path => $slug) {
|
||||
foreach ($this->items as $path => $slug) {
|
||||
$page = $this->pages->get($path);
|
||||
if ($page->routable()) {
|
||||
$routable[$path] = $slug;
|
||||
}
|
||||
}
|
||||
|
||||
$this->items = $routable;
|
||||
return $this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user