mirror of
https://github.com/getgrav/grav.git
synced 2026-06-20 03:11:29 +02:00
Hopefully fix auto_metadata_exif error #2248
This commit is contained in:
@@ -169,7 +169,8 @@ class Media extends AbstractMedia
|
||||
$meta_data = $meta->getData();
|
||||
$meta_trimmed = array_diff_key($meta_data, array_flip($this->standard_exif));
|
||||
if ($meta_trimmed) {
|
||||
$file = File::instance($meta_path);
|
||||
$full_meta_path = Grav::instance()['locator']->findResource($meta_path, true, true);
|
||||
$file = File::instance($full_meta_path);
|
||||
$file->save(Yaml::dump($meta_trimmed));
|
||||
$types['meta']['file'] = $meta_path;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user