Ignore:
Timestamp:
Jan 3, 2012, 9:21:13 PM (12 years ago)
Author:
rvelices
Message:

feature 2548 multisize

  • rewrote local site sync + metadata sync
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/ws_functions.inc.php

    r12810 r12831  
    17421742    // update metadata from the uploaded file (exif/iptc)
    17431743    require_once(PHPWG_ROOT_PATH.'admin/include/functions_metadata.php');
    1744     update_metadata(array($image_id=>$file_path));
     1744    sync_metadata(array($image_id));
    17451745  }
    17461746
     
    19261926  // update metadata from the uploaded file (exif/iptc), even if the sync
    19271927  // was already performed by add_uploaded_file().
    1928   $query = '
    1929 SELECT
    1930     path
    1931   FROM '.IMAGES_TABLE.'
    1932   WHERE id = '.$image_id.'
    1933 ;';
    1934   list($file_path) = pwg_db_fetch_row(pwg_query($query));
    19351928
    19361929  require_once(PHPWG_ROOT_PATH.'admin/include/functions_metadata.php');
    1937   update_metadata(array($image_id=>$file_path));
     1930  sync_metadata(array($image_id));
    19381931
    19391932  return array(
     
    33293322  $conf['use_exif'] = false;
    33303323  $conf['use_iptc'] = false;
    3331   update_metadata(array($image['id'] => $image['path']));
     3324  sync_metadata(array($image['id']));
    33323325
    33333326  return $result;
Note: See TracChangeset for help on using the changeset viewer.