|
@@ 973-975 (lines=3) @@
|
| 970 |
|
$this->current_destinations[ $day['destination_content_entity_id'] ] = $dest_id; |
| 971 |
|
|
| 972 |
|
// If there are images attached then use the destination. |
| 973 |
|
if ( isset( $destination_data[0]['content']['images'] ) && ! empty( $destination_data[0]['content']['images'] ) ) { |
| 974 |
|
$this->destination_images[ $id ][] = array( $dest_id, $day['destination_content_entity_id'] ); |
| 975 |
|
} |
| 976 |
|
|
| 977 |
|
$this->save_custom_field( $day['destination_content_entity_id'], 'lsx_wetu_id', $dest_id ); |
| 978 |
|
} |
|
@@ 1045-1047 (lines=3) @@
|
| 1042 |
|
$this->current_destinations[ $country_wetu_id ] = $country_id; |
| 1043 |
|
|
| 1044 |
|
// Check if there are images and save fore use later. |
| 1045 |
|
if ( isset( $country_data[0]['content']['images'] ) && ! empty( $country_data[0]['content']['images'] ) ) { |
| 1046 |
|
$this->destination_images[ $id ][] = array( $country_id,$country_wetu_id ); |
| 1047 |
|
} |
| 1048 |
|
|
| 1049 |
|
//Save the wetu field |
| 1050 |
|
$this->save_custom_field( $country_wetu_id, 'lsx_wetu_id', $country_id ); |