Ignore:
Timestamp:
Jan 12, 2015, 9:38:09 AM (10 years ago)
Author:
plg
Message:

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
  • trunk/include/functions_metadata.inc.php

    r28587 r30887  
    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.