Skip to content

Commit

Permalink
Hopefully fix auto_metadata_exif error #2248
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Mar 16, 2019
1 parent 2678f56 commit 81efef7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion system/src/Grav/Common/Page/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ protected function init()
$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;
}
Expand Down

2 comments on commit 81efef7

@MattAppleton
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bit of a Github-idiot question... when will this fix be incorporated into the general grav download / admin-based update?

@rhukster
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's commited in 1.6 branch, so next 1.6 RC or Release will contain it. Does it fix your issue though?

Please sign in to comment.