mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
use ->modified()
This commit is contained in:
parent
08cc36fe31
commit
20442bb9e1
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user