GoogleTranslate.php
authorChris <chris@roojs.com>
Wed, 2 Apr 2014 10:30:24 +0000 (18:30 +0800)
committerChris <chris@roojs.com>
Wed, 2 Apr 2014 10:30:24 +0000 (18:30 +0800)
GoogleTranslate.php

index 58410a8..d7ec433 100644 (file)
@@ -43,10 +43,10 @@ class Pman_Core_GoogleTranslate extends Pman
 
         $handle = curl_init();
         curl_setopt($handle,CURLOPT_URL, $url);
-        
         curl_setopt($handle, CURLOPT_POST, count($param));
         curl_setopt($handle, CURLOPT_POSTFIELDS, http_build_query($param));
         curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
+        
         $response = curl_exec($handle);                 
         $responseDecoded = json_decode($response, true);
         curl_close($handle);