mirror of
https://github.com/getgrav/grav.git
synced 2026-07-07 02:23:45 +02:00
Fix for #218 - ignore root level page
This commit is contained in:
@@ -622,7 +622,7 @@ class Pages
|
||||
}
|
||||
}
|
||||
|
||||
if (!empty($page_found)) {
|
||||
if ($parent && !empty($page_found)) {
|
||||
$file = new \SplFileInfo($page_found);
|
||||
$page->init($file);
|
||||
$page->extension($page_extension);
|
||||
@@ -639,7 +639,6 @@ class Pages
|
||||
|
||||
/** @var \DirectoryIterator $file */
|
||||
foreach (new \FilesystemIterator($directory) as $file) {
|
||||
|
||||
$name = $file->getFilename();
|
||||
|
||||
if ($file->isFile()) {
|
||||
|
||||
Reference in New Issue
Block a user