Fixed PageStorage detecting files as pages

This commit is contained in:
Matias Griese
2021-03-23 09:20:21 +02:00
parent 0491bd1a76
commit eb89c00bd5
2 changed files with 2 additions and 1 deletions

View File

@@ -4,6 +4,7 @@
1. [](#bugfix)
* Ignore errors when using `set_time_limit` in `Archiver` and `GPM\Response` classes [#3023](https://github.com/getgrav/grav/issues/3023)
* Fixed moving page to itself causing the page folder to be lost (converted to an empty file)
* Fixed `PageStorage` detecting files as pages
# v1.7.9
## 03/19/2021

View File

@@ -534,7 +534,7 @@ class PageStorage extends FolderStorage
$markdown = [];
$children = [];
if (is_string($path) && file_exists($path)) {
if (is_string($path) && is_dir($path)) {
$modified = filemtime($path);
$iterator = new FilesystemIterator($path, $this->flags);