aboutsummaryrefslogtreecommitdiffstats
path: root/include/ws_functions.inc.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-02-19 09:19:21 +0000
committerplegall <plg@piwigo.org>2010-02-19 09:19:21 +0000
commitc36a3d5adc899f866a66ab7fe8740c67df8bc12e (patch)
tree88afef07c79daf65d5ae5bd9ed51ed0ad2cbd190 /include/ws_functions.inc.php
parentce326d88f3b9f8ea946a92e2225c7e628b139e3b (diff)
feature 967: optionnaly transmit the original filename to pwg.images.add. When
transmitted, it fills the images.file column. git-svn-id: http://piwigo.org/svn/branches/2.0@4910 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/ws_functions.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php
index 73fad605f..bad46a12e 100644
--- a/include/ws_functions.inc.php
+++ b/include/ws_functions.inc.php
@@ -1244,7 +1244,7 @@ SELECT
// database registration
$insert = array(
- 'file' => $filename_wo_ext.'.jpg',
+ 'file' => !empty($params['original_filename']) ? $params['original_filename'] : $filename_wo_ext.'.jpg',
'date_available' => $dbnow,
'tn_ext' => 'jpg',
'name' => $params['name'],