Show
Ignore:
Timestamp:
06/06/10 12:14:26 (3 years ago)
Author:
rvelices
Message:

merge r6473 from trunk to branch 2.1
- quick fix (maybe not the cleanest) of regression 2.0 -> 2.1 when displaying metadata on picture page (event called with different input)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/2.1/include/picture_metadata.inc.php

    r6364 r6474  
    3030if (($conf['show_exif']) and (function_exists('read_exif_data'))) 
    3131{ 
    32   $exif_mapping = array(); 
    33   foreach ($conf['show_exif_fields'] as $field) 
    34   { 
    35     $exif_mapping[$field] = $field; 
    36   } 
    37  
    38   $exif = get_exif_data($picture['current']['image_path'], $exif_mapping); 
     32  $exif = get_exif_data($picture['current']['image_path'], null); 
    3933  if (count($exif) == 0 and $picture['current']['has_high']) 
    4034  { 
    41     $exif = get_exif_data($picture['current']['high_url'], $exif_mapping); 
     35    $exif = get_exif_data($picture['current']['high_url'], null); 
    4236  } 
    43    
    4437  if (count($exif) > 0) 
    4538  {