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:
@@ -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));
|
||||
|
Reference in New Issue
Block a user