Changeset 27242 for extensions/flickr2piwigo/include/ws_functions.inc.php
- Timestamp:
- Feb 6, 2014, 3:03:57 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/flickr2piwigo/include/ws_functions.inc.php
r26180 r27242 98 98 $photo['category'] = array($photo['category']); 99 99 } 100 101 // level 102 $level = 0; 103 if (in_array('level', $photo['fills']) && !$photo['visibility']['ispublic']) 104 { 105 $level = 8; 106 if ($photo['visibility']['isfamily']) $level = 4; 107 if ($photo['visibility']['isfriend']) $level = 2; 108 } 100 109 101 110 // add photo 102 $photo['image_id'] = add_uploaded_file($photo['path'], basename($photo['path']), $photo['category'] );111 $photo['image_id'] = add_uploaded_file($photo['path'], basename($photo['path']), $photo['category'], $level); 103 112 104 113 // do some updates
Note: See TracChangeset
for help on using the changeset viewer.