From 925fc616e71ed949823e9502664dcd29cc24d159 Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Mon, 7 May 2012 00:15:03 +0200 Subject: [PATCH] Use latest PHPExiftool API --- lib/classes/system/file.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/classes/system/file.class.php b/lib/classes/system/file.class.php index 402079801c..6cc5cdba49 100644 --- a/lib/classes/system/file.class.php +++ b/lib/classes/system/file.class.php @@ -471,7 +471,7 @@ class system_file extends \SplFileInfo foreach ($uniqueKeys as $uniqueKey) { if ($metadatas->containsKey($uniqueKey)) { - $value = (string) $metadatas->get($uniqueKey)->getValue()->getValue(); + $value = (string) $metadatas->get($uniqueKey)->getValue()->asString(); if (uuid::is_valid($value)) { $this->uuid = $value; @@ -721,7 +721,7 @@ class system_file extends \SplFileInfo $tfields[$src] = array(); } - foreach ((array) $metadatas->get($key)->getValue()->getValue() as $value) { + foreach ($metadatas->get($key)->getValue()->asArray() as $value) { $value = $unicode->substituteCtrlCharacters($value, ' ');