Ignore:
Timestamp:
Dec 4, 2013, 11:24:44 PM (10 years ago)
Author:
mistic100
Message:

import description and geotags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/flickr2piwigo/include/ws_functions.inc.php

    r24815 r25789  
    112112    if (in_array('fill_taken', $photo['fills']))  $updates['date_creation'] = $photo['dates']['taken'];
    113113    if (in_array('fill_author', $photo['fills'])) $updates['author'] = pwg_db_real_escape_string($photo['owner']['username']);
     114    if (in_array('fill_description', $photo['fills'])) $updates['comment'] = pwg_db_real_escape_string($photo['description']);
     115    if (in_array('fill_geotag', $photo['fills']) and !empty($photo['location']) )
     116    {
     117      $updates['lat'] = pwg_db_real_escape_string($photo['location']['latitude']);
     118      $updates['lon'] = pwg_db_real_escape_string($photo['location']['longitude']);
     119    }
    114120   
    115121    if (count($updates))
Note: See TracChangeset for help on using the changeset viewer.