From 1e40cec3bf4fa4f613c4ce89983bfa49813d6514 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 5 Oct 2010 18:08:00 +0000 Subject: [PATCH] Error management --- dev/translation/langAutoParser.class.php | 6 ++++++ 1 file changed, 6 insertions(+) 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);