Revert "dont’ fail hard if pages recurse with same path"

This reverts commit 9c5b8b6496.

# Conflicts:
#	system/src/Grav/Common/Page/Pages.php
This commit is contained in:
Andy Miller 2022-10-25 18:20:08 -06:00
parent f7b7f3337d
commit ad33a63ad2
No known key found for this signature in database
GPG Key ID: 9F2CF38AEBDB0AE0
2 changed files with 2 additions and 4 deletions

View File

@ -3,9 +3,7 @@
1. [](#improved)
* Updated `bin/composer.phar` to latest `2.4.2` version [#3627](https://github.com/getgrav/grav/issues/3627)
1. [](#bugfix)
* Don't fail hard if pages recurse with same page path
# v1.7.37.1
## 10/05/2022

View File

@ -1850,7 +1850,7 @@ class Pages
$this->children[$parent->path()][$page->path()] = ['slug' => $page->slug()];
}
} elseif ($parent !== null) {
return null;
throw new RuntimeException('Fatal error when creating page instances.');
}
// Build regular expression for all the allowed page extensions.