diff options
Diffstat (limited to '')
-rw-r--r-- | include/ws_functions.inc.php | 2 | ||||
-rw-r--r-- | ws.php | 1 |
2 files changed, 2 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'], @@ -204,6 +204,7 @@ function ws_addDefaultMethods( $arr ) 'thumbnail_sum' => array(), 'high_sum' => array('default' => null), 'original_sum' => array(), + 'original_filename' => array('default' => null), 'name' => array('default' => null), 'author' => array('default' => null), 'date_creation' => array('default' => null), |