Skip to content

Commit

Permalink
merge r4680 from branch 2.0 to trunk
Browse files Browse the repository at this point in the history
bug 1380: now correctly synchronizes metadata on a single photo, needs a nicer
fix on trunk.


git-svn-id: http://piwigo.org/svn/trunk@4681 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Jan 15, 2010
1 parent 5095f26 commit 080a848
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions admin/include/functions_metadata.php
Expand Up @@ -141,11 +141,14 @@ function update_metadata($files)
if ($conf['use_exif'])
{
$exif = get_sync_exif_data($file);
$data = array_merge($data, $exif);
}

if ($conf['use_iptc'])
{
$iptc = get_sync_iptc_data($file);
$data = array_merge($data, $iptc);

if (count($iptc) > 0)
{
foreach (array_keys($iptc) as $key)
Expand Down

0 comments on commit 080a848

Please sign in to comment.