Commit 4e23a83e authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Quicktips benutzen nicht mehr Curl

parent 45088adf
......@@ -136,14 +136,7 @@ class MetaGerSearch extends Controller
}
function get($url) {
$process = curl_init($url);
curl_setopt($process, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($process, CURLOPT_TIMEOUT, 30);
curl_setopt($process, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($process, CURLOPT_FOLLOWLOCATION, 1);
$return = curl_exec($process);
curl_close($process);
return $return;
return file_get_contents($url);
}
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment