diff options
author | plegall <plg@piwigo.org> | 2010-01-15 11:28:18 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2010-01-15 11:28:18 +0000 |
commit | 4e26a5480e40e784d65f809443b61b860444b974 (patch) | |
tree | 10d8c3fdbc2b0a120401fad13129d155abdafe4c /include | |
parent | 568cb2e3b1d97803fb5f4588ba9bd8bce44a94de (diff) |
merge r4684 from branch 2.0 to trunk
feature 1381: pwg.images.add automatically synchronizes metadata. Thank you to
Jochen Roth (Polly) for the patch.
git-svn-id: http://piwigo.org/svn/trunk@4685 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-rw-r--r-- | include/ws_functions.inc.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php index 23e3b18dd..439516b7e 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(); } |