FormatMetadata::fetchExtendedMetadata: Ignore multiple EXIF/XMP values
authorGergő Tisza <tgr.huwiki@gmail.com>
Wed, 12 Nov 2014 19:10:05 +0000 (19:10 +0000)
committerGergő Tisza <tgr.huwiki@gmail.com>
Wed, 12 Nov 2014 19:10:05 +0000 (19:10 +0000)
commitb8d2ca802004d2ba2ec592d62f2c76c953abc360
treed9677b1be3bce94ee7496cf12b501ccb07932bf5
parent37a6d0e60d7d86f5f078d352f0a2d01e12fedbec
FormatMetadata::fetchExtendedMetadata: Ignore multiple EXIF/XMP values

Ignore all but the first value of multivalued metadata fields. Before
this, the function returned an array of values for such fields,
causing various errors.

Bug: 72652
Change-Id: I0fd22b78e4938eecc506d870e352b3b196ee3ace
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/973
includes/media/FormatMetadata.php
tests/phpunit/includes/media/FormatMetadataTest.php