1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-24 05:43:10 +02:00

Flextype Core: remove date field and add new created_at, modified_at, published_at fields #196

This commit is contained in:
Awilum
2019-08-01 13:53:55 +03:00
parent 3ef62a4cb4
commit 3d47ced6b8

View File

@@ -407,9 +407,6 @@ class Entries
// Entry file path
$entry_file = $entry_dir . '/entry.json';
// Merge data
$data = array_merge($data, ['created_at' => Filesystem::getTimestamp($entry_file)]);
// Check if new entry file exists
if (!Filesystem::has($entry_file)) {
return Filesystem::write($entry_file, JsonParser::encode($data));