use ->modified()

This commit is contained in:
Andy Miller 2024-06-04 14:46:15 +01:00 committed by GitHub
parent 08cc36fe31
commit 20442bb9e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -610,7 +610,7 @@ class Page implements PageInterface
if ($this->lastModified()) {
$last_modified = $this->modified();
foreach ($this->children()->modular() as $cpage) {
$modular_mtime = (int)filemtime($cpage->filePath());
$modular_mtime = $cpage->modified();
if ($modular_mtime > $last_modified) {
$last_modified = $modular_mtime;
}