Advertisement
Guest User

turn curl check off

a guest
Jan 30th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. // in process.php
  2. // change this
  3. $translations_url = (curlEnabled()) ? $protocol.$_SERVER["HTTP_HOST"].str_replace('process.php', 'translations.json', $_SERVER["REQUEST_URI"]) : 'translations.json';
  4. $translations = (curlEnabled()) ? curl_file_get_contents($translations_url) : file_get_contents($translations_url);
  5.  
  6. // to this
  7. $translations_url = 'translations.json';
  8. $translations = file_get_contents($translations_url);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement