Skip to content

Commit

Permalink
use ->modified()
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster authored Jun 4, 2024
1 parent 08cc36f commit 20442bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/src/Grav/Common/Page/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 20442bb

Please sign in to comment.