- bug 174 fixed: use_exif_mapping configuration parameter was not used to

list database fields to update from EXIF values.


git-svn-id: http://piwigo.org/svn/trunk@903 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2005-10-19 21:56:53 +00:00
parent 4b4e8a4663
commit 233bd56dd8
2 changed files with 29 additions and 6 deletions
+24 -6
View File
@@ -135,19 +135,37 @@ function update_metadata($files)
if (count($datas) > 0)
{
$update_fields = array('filesize','width','height','date_metadata_update');
$update_fields =
array(
'filesize',
'width',
'height',
'date_metadata_update'
);
if ($conf['use_exif'])
{
array_push($update_fields, 'date_creation');
$update_fields =
array_merge(
$update_fields,
array_keys($conf['use_exif_mapping'])
);
}
if ($conf['use_iptc'])
{
$update_fields = array_merge($update_fields,
array_keys($conf['use_iptc_mapping']));
$update_fields =
array_merge(
$update_fields,
array_keys($conf['use_iptc_mapping'])
);
}
$fields = array('primary' => array('id'),
'update' => array_unique($update_fields));
$fields =
array(
'primary' => array('id'),
'update' => array_unique($update_fields)
);
mass_updates(IMAGES_TABLE, $fields, $datas);
}
}
+5
View File
@@ -1,3 +1,8 @@
2005-10-18 Pierrick LE GALL
* bug 174 fixed: use_exif_mapping configuration parameter was not
used to list database fields to update from EXIF values.
2005-10-18 Pierrick LE GALL
* bug 172 fixed: crash when changing password with an external