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