From faf690b833f84978f98cf40164052d5ab80cf158 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Wed, 9 Sep 2015 19:37:48 -0600 Subject: [PATCH] Fixed all() not actually returning all pages... --- system/src/Grav/Common/Page/Pages.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/system/src/Grav/Common/Page/Pages.php b/system/src/Grav/Common/Page/Pages.php index b676ca639..19c654b6a 100644 --- a/system/src/Grav/Common/Page/Pages.php +++ b/system/src/Grav/Common/Page/Pages.php @@ -359,9 +359,11 @@ class Pages public function all(Page $current = null) { $all = new Collection(); + + /** @var Page $current */ $current = $current ?: $this->root(); - if ($current->routable()) { + if (!$current->root()) { $all[$current->path()] = [ 'slug' => $current->slug() ]; }