mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 22:43:19 +00:00
Use latest PHPExiftool API
This commit is contained in:
@@ -471,7 +471,7 @@ class system_file extends \SplFileInfo
|
|||||||
foreach ($uniqueKeys as $uniqueKey) {
|
foreach ($uniqueKeys as $uniqueKey) {
|
||||||
if ($metadatas->containsKey($uniqueKey)) {
|
if ($metadatas->containsKey($uniqueKey)) {
|
||||||
|
|
||||||
$value = (string) $metadatas->get($uniqueKey)->getValue()->getValue();
|
$value = (string) $metadatas->get($uniqueKey)->getValue()->asString();
|
||||||
|
|
||||||
if (uuid::is_valid($value)) {
|
if (uuid::is_valid($value)) {
|
||||||
$this->uuid = $value;
|
$this->uuid = $value;
|
||||||
@@ -721,7 +721,7 @@ class system_file extends \SplFileInfo
|
|||||||
$tfields[$src] = array();
|
$tfields[$src] = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ((array) $metadatas->get($key)->getValue()->getValue() as $value) {
|
foreach ($metadatas->get($key)->getValue()->asArray() as $value) {
|
||||||
|
|
||||||
$value = $unicode->substituteCtrlCharacters($value, ' ');
|
$value = $unicode->substituteCtrlCharacters($value, ' ');
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user