From 20442bb9e14ade69db9be75374ec7674446f3fc2 Mon Sep 17 00:00:00 2001 From: Andy Miller <1084697+rhukster@users.noreply.github.com> Date: Tue, 4 Jun 2024 14:46:15 +0100 Subject: [PATCH] use ->modified() --- system/src/Grav/Common/Page/Page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Common/Page/Page.php b/system/src/Grav/Common/Page/Page.php index ee602c2212..e0439f4b3f 100644 --- a/system/src/Grav/Common/Page/Page.php +++ b/system/src/Grav/Common/Page/Page.php @@ -610,7 +610,7 @@ public function httpHeaders() 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; }