Skip to content

Commit

Permalink
Merge pull request #3 from erikfriberg/erikfriberg-contentFile
Browse files Browse the repository at this point in the history
Fix compability issues
  • Loading branch information
erikfriberg authored Feb 11, 2024
2 parents bc4df8e + 6626c10 commit b8682b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/feeds.php
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,9 @@ private static function getDatesFromPage(Page $p, int &$whenMod, int &$whenPub):
$t = $p->content()->get('date');
$whenMod = strtotime($t);
} else {
if (file_exists($p->contentFile())) {
$mtime = filemtime($p->contentFile());
$ctime = filectime($p->contentFile());
if (file_exists($p->storage()->contentFile('published', 'default'))) {
$mtime = filemtime($p->storage()->contentFile('published', 'default'));
$ctime = filectime($p->storage()->contentFile('published', 'default'));
$whenMod = max($mtime, $ctime);
}
}
Expand Down

0 comments on commit b8682b6

Please sign in to comment.