|
@@ 1008-1010 (lines=3) @@
|
| 1005 |
|
$this->current_destinations[ $day['destination_content_entity_id'] ] = $dest_id; |
| 1006 |
|
|
| 1007 |
|
//If there are images attached then use the destination |
| 1008 |
|
if ( isset( $destination_data[0]['content']['images'] ) && ! empty( $destination_data[0]['content']['images'] ) ) { |
| 1009 |
|
$this->destination_images[ $id ][] = array( $dest_id, $day['destination_content_entity_id'] ); |
| 1010 |
|
} |
| 1011 |
|
|
| 1012 |
|
$this->save_custom_field( $day['destination_content_entity_id'], 'lsx_wetu_id', $dest_id ); |
| 1013 |
|
} |
|
@@ 1080-1082 (lines=3) @@
|
| 1077 |
|
$this->current_destinations[ $country_wetu_id ] = $country_id; |
| 1078 |
|
|
| 1079 |
|
// Check if there are images and save fore use later. |
| 1080 |
|
if ( isset( $country_data[0]['content']['images'] ) && ! empty( $country_data[0]['content']['images'] ) ) { |
| 1081 |
|
$this->destination_images[ $id ][] = array( $country_id,$country_wetu_id ); |
| 1082 |
|
} |
| 1083 |
|
|
| 1084 |
|
//Save the wetu field |
| 1085 |
|
$this->save_custom_field( $country_wetu_id, 'lsx_wetu_id', $country_id ); |