mirror of
https://github.com/typemill/typemill.git
synced 2025-07-25 00:02:28 +02:00
V2.17.1 fix last modified for non-published pages
This commit is contained in:
2
cache/timer.yaml
vendored
2
cache/timer.yaml
vendored
@@ -1 +1 @@
|
||||
licenseupdate: 1747561267
|
||||
licenseupdate: 1747568554
|
||||
|
@@ -21,7 +21,13 @@ class Meta
|
||||
{
|
||||
$metadata = $this->storage->getYaml('contentFolder', '', $item->pathWithoutType . '.yaml');
|
||||
|
||||
$metadata['meta']['modified'] = $this->storage->getFileTime('contentFolder', '', $item->pathWithoutType . '.md');
|
||||
$modified = $this->storage->getFileTime('contentFolder', '', $item->pathWithoutType . '.md');
|
||||
if(!$modified)
|
||||
{
|
||||
$modified = $this->storage->getFileTime('contentFolder', '', $item->pathWithoutType . '.txt');
|
||||
}
|
||||
|
||||
$metadata['meta']['modified'] = $modified;
|
||||
|
||||
return $metadata;
|
||||
}
|
||||
|
Reference in New Issue
Block a user