Changeset 12831 for trunk/include/ws_functions.inc.php
- Timestamp:
- Jan 3, 2012, 9:21:13 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/ws_functions.inc.php
r12810 r12831 1742 1742 // update metadata from the uploaded file (exif/iptc) 1743 1743 require_once(PHPWG_ROOT_PATH.'admin/include/functions_metadata.php'); 1744 update_metadata(array($image_id=>$file_path));1744 sync_metadata(array($image_id)); 1745 1745 } 1746 1746 … … 1926 1926 // update metadata from the uploaded file (exif/iptc), even if the sync 1927 1927 // was already performed by add_uploaded_file(). 1928 $query = '1929 SELECT1930 path1931 FROM '.IMAGES_TABLE.'1932 WHERE id = '.$image_id.'1933 ;';1934 list($file_path) = pwg_db_fetch_row(pwg_query($query));1935 1928 1936 1929 require_once(PHPWG_ROOT_PATH.'admin/include/functions_metadata.php'); 1937 update_metadata(array($image_id=>$file_path));1930 sync_metadata(array($image_id)); 1938 1931 1939 1932 return array( … … 3329 3322 $conf['use_exif'] = false; 3330 3323 $conf['use_iptc'] = false; 3331 update_metadata(array($image['id'] => $image['path']));3324 sync_metadata(array($image['id'])); 3332 3325 3333 3326 return $result;
Note: See TracChangeset
for help on using the changeset viewer.