This commit is contained in:
Parziphal 2014-06-04 09:41:44 -05:00
commit 1e2f626077

View File

@ -70,9 +70,13 @@ class SimilarImages
$params = [];
if ($search_url) {
$params['url'] = $search_url;
} else {
if (function_exists('curl_file_create')) { // PHP v5.5.* fix
$params['file'] = curl_file_create($source_file);
} else {
$params['file'] = '@' . $source_file;
}
}
foreach ($services_list as $k => $s)
$params["service[$k]"] = $s;