media: Ignore EXIF tag GPSAltitudeRef in FormatMetadata

GPSAltitudeRef is no longer written to img_metadata, but for
compatibility with old rows, don't raise a formatnum warning, just
ignore the tag.

Bug: T285213
Change-Id: Icc074bc0d7bd6a84f73a26e8dd001be85cbef165
This commit is contained in:
Tim Starling 2021-06-25 14:34:43 +10:00 committed by Krinkle
parent d5aa75d472
commit 5150f19d65

View file

@ -113,6 +113,7 @@ class FormatMetadata extends ContextSource {
unset( $tags['AuthorsPosition'] );
unset( $tags['LocationCreated'] );
unset( $tags['LocationShown'] );
unset( $tags['GPSAltitudeRef'] );
foreach ( $tags as $tag => &$vals ) {
// This seems ugly to wrap non-array's in an array just to unwrap again,