Changeset 17476 for extensions/flickr2piwigo/include/ws_functions.inc.php
- Timestamp:
- Aug 8, 2012, 1:55:06 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/flickr2piwigo/include/ws_functions.inc.php
r17312 r17476 10 10 'ws_images_addFlickr', 11 11 array( 12 ' category' => array('default' => null),13 ' id' => array('default' => null),12 'id' => array(), 13 'category' => array(), 14 14 'fills' => array('default' =>null), 15 15 ), 16 'Used by Flickr2Piwigo , fills € (fill_name,fill_posted,fill_taken,fill_author,fill_tags)'16 'Used by Flickr2Piwigo' 17 17 ); 18 18 } … … 30 30 if ( empty($conf['flickr2piwigo']['api_key']) or empty($conf['flickr2piwigo']['secret_key']) ) 31 31 { 32 return new PwgError( 500, l10n('Please fill your API keys on the configuration tab'));32 return new PwgError(null, l10n('Please fill your API keys on the configuration tab')); 33 33 } 34 34 … … 36 36 include_once(PHPWG_ROOT_PATH . 'admin/include/functions_upload.inc.php'); 37 37 include_once(FLICKR_PATH . 'include/functions.inc.php'); 38 39 if (test_remote_download() === false) 40 { 41 return new PwgError(null, l10n('No download method available')); 42 } 38 43 39 44 // init flickr API … … 58 63 if (download_remote_file($photo['url'], $photo['path']) == false) 59 64 { 60 return new PwgError( 500, l10n('No download method available'));65 return new PwgError(null, l10n('Can\'t download file')); 61 66 } 62 67 … … 125 130 } 126 131 127 return sprintf(l10n(' %simported'), $photo['title']);132 return sprintf(l10n('Photo "%s" imported'), $photo['title']); 128 133 } 129 134
Note: See TracChangeset
for help on using the changeset viewer.