Changeset 30888


Ignore:
Timestamp:
Jan 12, 2015, 9:39:43 AM (9 years ago)
Author:
plg
Message:

merge r30887 from trunk to branch 2.7

feature 2943: ability to display metadata (via plugin) even if Piwigo core
finds no EXIF. Patch by xbgmsharp (will be used by plugin videoJS).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/include/functions_metadata.inc.php

    r28587 r30888  
    151151
    152152  // Read EXIF data
    153   if ($exif = @read_exif_data($filename))
    154   {
    155     $exif = trigger_change('format_exif_data', $exif, $filename, $map);
     153  if ($exif = @read_exif_data($filename) or $exif2 = trigger_change('format_exif_data', $exif=null, $filename, $map))
     154  {
     155    if (!empty($exif2))
     156    {
     157      $exif = $exif2;
     158    }
     159    else
     160    {
     161      $exif = trigger_change('format_exif_data', $exif, $filename, $map);
     162    }
    156163
    157164    // configured fields
Note: See TracChangeset for help on using the changeset viewer.