Changeset 903


Ignore:
Timestamp:
Oct 19, 2005, 11:56:53 PM (19 years ago)
Author:
plg
Message:
  • bug 174 fixed: use_exif_mapping configuration parameter was not used to list database fields to update from EXIF values.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions_metadata.php

    r862 r903  
    136136  if (count($datas) > 0)
    137137  {
    138     $update_fields = array('filesize','width','height','date_metadata_update');
     138    $update_fields =
     139      array(
     140        'filesize',
     141        'width',
     142        'height',
     143        'date_metadata_update'
     144        );
     145   
    139146    if ($conf['use_exif'])
    140147    {
    141       array_push($update_fields, 'date_creation');
    142     }
     148      $update_fields =
     149        array_merge(
     150          $update_fields,
     151          array_keys($conf['use_exif_mapping'])
     152          );
     153    }
     154   
    143155    if ($conf['use_iptc'])
    144156    {
    145       $update_fields = array_merge($update_fields,
    146                                    array_keys($conf['use_iptc_mapping']));
    147     }
    148 
    149     $fields = array('primary' => array('id'),
    150                     'update'  => array_unique($update_fields));
     157      $update_fields =
     158        array_merge(
     159          $update_fields,
     160          array_keys($conf['use_iptc_mapping'])
     161          );
     162    }
     163
     164    $fields =
     165      array(
     166        'primary' => array('id'),
     167        'update'  => array_unique($update_fields)
     168        );
    151169    mass_updates(IMAGES_TABLE, $fields, $datas);
    152170  }
  • trunk/doc/ChangeLog

    r902 r903  
     12005-10-18 Pierrick LE GALL
     2
     3        * bug 174 fixed: use_exif_mapping configuration parameter was not
     4        used to list database fields to update from EXIF values.
     5
    162005-10-18 Pierrick LE GALL
    27
Note: See TracChangeset for help on using the changeset viewer.