| @@ 424-433 (lines=10) @@ | ||
| 421 | } |
|
| 422 | ||
| 423 | $jdata = file_get_contents( $this->url . '/Get?' . $this->url_qs . '&ids=' . $wetu_id ); |
|
| 424 | if($jdata) |
|
| 425 | { |
|
| 426 | $adata=json_decode($jdata,true); |
|
| 427 | if(!empty($adata)) |
|
| 428 | { |
|
| 429 | $return = $this->import_row($adata,$wetu_id,$post_id,$team_members,$content,$safari_brands); |
|
| 430 | $this->format_completed_row($return); |
|
| 431 | $this->cleanup_posts(); |
|
| 432 | } |
|
| 433 | } |
|
| 434 | } |
|
| 435 | } |
|
| 436 | ||
| @@ 528-538 (lines=11) @@ | ||
| 525 | ||
| 526 | $jdata=file_get_contents("http://wetu.com/API/Itinerary/V7/Get?id=".$wetu_id); |
|
| 527 | ||
| 528 | if($jdata) |
|
| 529 | { |
|
| 530 | $jdata=json_decode($jdata,true); |
|
| 531 | if(!empty($jdata)) |
|
| 532 | { |
|
| 533 | $return = $this->import_row($jdata,$wetu_id,$post_id,$content); |
|
| 534 | $this->format_completed_row($return); |
|
| 535 | $this->cleanup_posts(); |
|
| 536 | $this->attach_destination_images($content); |
|
| 537 | } |
|
| 538 | } |
|
| 539 | } |
|
| 540 | } |
|
| 541 | ||