aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-01-15 11:27:53 +0000
committerplegall <plg@piwigo.org>2010-01-15 11:27:53 +0000
commit62139d941a0a0ab97f40ba65fa304b5415b4305e (patch)
tree140824760fcb58f54dd122a9d1c87f5679577238 /include
parentee9232b650e1ff5f71a5a25cc81e10c53810f1e3 (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/ws_functions.inc.php4
1 files changed, 4 insertions, 0 deletions
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();
}