From 62139d941a0a0ab97f40ba65fa304b5415b4305e Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 15 Jan 2010 11:27:53 +0000 Subject: [PATCH] feature 1381: pwg.images.add automatically synchronizes metadata. Thank you to Jochen Roth (Polly) for the patch. git-svn-id: http://piwigo.org/svn/branches/2.0@4684 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/ws_functions.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php index 6e13af641..402a52a60 100644 --- a/include/ws_functions.inc.php +++ b/include/ws_functions.inc.php @@ -1254,6 +1254,10 @@ SELECT ); } + // update metadata from the uploaded file (exif/iptc) + require_once(PHPWG_ROOT_PATH.'admin/include/functions_metadata.php'); + update_metadata(array($image_id=>$file_path)); + invalidate_user_cache(); }