mirror of
https://github.com/getgrav/grav.git
synced 2026-07-15 11:22:34 +02:00
Fixed all() not actually returning all pages...
This commit is contained in:
@@ -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() ];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user