Changeset 18126 for extensions
- Timestamp:
- Sep 21, 2012, 8:34:47 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Google2Piwigo/include/ws_functions.inc.php
r17475 r18126 62 62 'id' => $params['id'], 63 63 'url' => $photoEntry->mediaGroup->content[0]->url, 64 'title' => $photoEntry->mediagroup->title->text,64 'title' => get_filename_wo_extension($photoEntry->mediagroup->title->text), 65 65 'author' => $photoEntry->mediaGroup->credit[0]->text, 66 66 'description' => $photoEntry->mediagroup->description->text, … … 103 103 104 104 $category = array( 105 'name' => $albumEntry->mediaGroup->title->text.' <!-- picasa-'.$params['pwa_album'].' -->',106 'comment' => $albumEntry->mediaGroup->description->text,105 'name' => pwg_db_real_escape_string($albumEntry->mediaGroup->title->text).' <!-- picasa-'.$params['pwa_album'].' -->', 106 'comment' => pwg_db_real_escape_string($albumEntry->mediaGroup->description->text), 107 107 'parent' => 0, 108 108 ); … … 127 127 128 128 $updates = array(); 129 if (in_array('fill_name', $params['fills'])) $updates['name'] = $photo['title'];129 if (in_array('fill_name', $params['fills'])) $updates['name'] = pwg_db_real_escape_string($photo['title']); 130 130 if (in_array('fill_taken', $params['fills'])) $updates['date_creation'] = date('Y-d-m H:i:s', $photo['timestamp']); 131 if (in_array('fill_author', $params['fills'])) $updates['author'] = $photo['author'];132 if (in_array('fill_description', $params['fills'])) $updates['comment'] = $photo['description'];131 if (in_array('fill_author', $params['fills'])) $updates['author'] = pwg_db_real_escape_string($photo['author']); 132 if (in_array('fill_description', $params['fills'])) $updates['comment'] = pwg_db_real_escape_string($photo['description']); 133 133 134 134 if (count($updates))
Note: See TracChangeset
for help on using the changeset viewer.