Skip to content

Commit

Permalink
merge r4910 from branch 2.0 to trunk
Browse files Browse the repository at this point in the history
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/trunk@4911 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Feb 19, 2010
1 parent 9c5a2ae commit 6ba826e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/ws_functions.inc.php
Expand Up @@ -1244,7 +1244,7 @@ function ws_images_add($params, &$service)

// 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'],
Expand Down
1 change: 1 addition & 0 deletions ws.php
Expand Up @@ -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),
Expand Down

0 comments on commit 6ba826e

Please sign in to comment.