diff --git a/dev/translation/langAutoParser.class.php b/dev/translation/langAutoParser.class.php index eeb1894589e..5304f77c60f 100644 --- a/dev/translation/langAutoParser.class.php +++ b/dev/translation/langAutoParser.class.php @@ -244,6 +244,12 @@ class langAutoParser { //print "Url to translate: ".$url."\n"; + if (! function_exists("curl_init")) + { + print "Error, your PHP does not support curl functions.\n"; + die; + } + $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);