mirror of
https://github.com/flextype/flextype.git
synced 2025-08-18 02:41:27 +02:00
fix(core): use array_merge() instead of array_replace_recursive() for entries update method
This commit is contained in:
@@ -449,9 +449,8 @@ class Entries
|
||||
$body = Filesystem::read($entry_file);
|
||||
$entry = $this->flextype['parser']->decode($body, 'frontmatter');
|
||||
|
||||
return Filesystem::write($entry_file, $this->flextype['parser']->encode(array_replace_recursive($entry, $data), 'frontmatter'));
|
||||
return Filesystem::write($entry_file, $this->flextype['parser']->encode(array_merge($entry, $data), 'frontmatter'));
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user