Guest User

Untitled

a guest
May 10th, 2016
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. if ($json_api_response === false) {
  2. //try via http
  3. $api_url = 'http://api.fixer.io/latest';
  4. $json_api_response = td_remote_http::get_page($api_url, __CLASS__);
  5. if ($json_api_response === false) {
  6. td_log::log(__FILE__, __FUNCTION__, 'Api call failed', $api_url);
  7. return 'Api call failed';
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment